MCPcopy Create free account
hub / github.com/Roy3838/Observer / get_bytes

Function get_bytes

api/r2_store.py:157–159  ·  view source on GitHub ↗

Returns (body, content_type), or None if the object does not exist.

(key: str)

Source from the content-addressed store, hash-verified

155
156
157async def get_bytes(key: str) -> Optional[Tuple[bytes, str]]:
158 """Returns (body, content_type), or None if the object does not exist."""
159 return await asyncio.to_thread(_get_bytes_sync, key)
160
161
162async def delete(key: str) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected