Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
29
30
31
def
_json_bytes(payload: Dict[str, Any]) -> bytes:
32
return
json.dumps(payload, ensure_ascii=False, indent=2).encode(
"utf-8"
)
33
34
35
def
_sse_bytes(event: str, payload: Dict[str, Any]) -> bytes:
Callers
1
_send_json
Method · 0.85
Calls
1
encode
Method · 0.80
Tested by
no test coverage detected