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

Function _stream_chunks

deployments/desktop/server.py:40–44  ·  view source on GitHub ↗
(text: str, size: int = 18)

Source from the content-addressed store, hash-verified

38 return f"event: {event}\ndata: {data}\n\n".encode("utf-8")
39
40
41def _stream_chunks(text: str, size: int = 18) -> list[str]:
42 content = str(text or "")
43 if not content:
44 return [""]
45 return [content[index : index + size] for index in range(0, len(content), size)]
46
47

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected