MCPcopy Create free account
hub / github.com/dot-agent/nextpy / format_query_params

Function format_query_params

nextpy/utils/format.py:512–522  ·  view source on GitHub ↗

Convert back query params name to python-friendly case. Args: router_data: the router_data dict containing the query params Returns: The reformatted query params

(router_data: dict[str, Any])

Source from the content-addressed store, hash-verified

510
511
512def format_query_params(router_data: dict[str, Any]) -> dict[str, str]:
513 """Convert back query params name to python-friendly case.
514
515 Args:
516 router_data: the router_data dict containing the query params
517
518 Returns:
519 The reformatted query params
520 """
521 params = router_data[constants.RouteVar.QUERY]
522 return {k.replace("-", "_"): v for k, v in params.items()}
523
524
525def format_state(value: Any) -> Any:

Callers

nothing calls this directly

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected