nvflare.edge.web.routing_proxy module

class FilteredJSONProvider(app: App)[source]

Bases: DefaultJSONProvider

dumps(obj: Any, **kwargs: Any) str[source]

Serialize data as JSON to a string.

Keyword arguments are passed to json.dumps(). Sets some parameter defaults from the default, ensure_ascii, and sort_keys attributes.

Parameters:
  • obj – The data to serialize.

  • kwargs – Passed to json.dumps().

sort_keys = False

Sort the keys in any serialized dicts. This may be useful for some caching situations, but can be disabled for better performance. When enabled, keys must all be strings, they are not converted before sorting.

clean_dict(value: Any)[source]
handle_api_error(error: ApiError)[source]
parse_args()[source]