MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _json_bytes

Function _json_bytes

deployments/desktop/server.py:31–32  ·  view source on GitHub ↗
(payload: Dict[str, Any])

Source from the content-addressed store, hash-verified

29ApiHandler = Callable[[Dict[str, Any], Dict[str, Any]], Dict[str, Any]]
30
31
32def _json_bytes(payload: Dict[str, Any]) -> bytes:
33 return json.dumps(payload, ensure_ascii=False, indent=2).encode("utf-8")
34
35

Callers 1

_send_jsonMethod · 0.85

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected