Write raw bytes. Unconditional: callers that use this write to keys nobody else writes, so there is no race to guard against.
(
key: str,
body: bytes,
content_type: str = "application/octet-stream",
content_encoding: Optional[str] = None,
)
| 142 | |
| 143 | |
| 144 | async def put_bytes( |
| 145 | key: str, |
| 146 | body: bytes, |
| 147 | content_type: str = "application/octet-stream", |
| 148 | content_encoding: Optional[str] = None, |
| 149 | ) -> str: |
| 150 | """ |
| 151 | Write raw bytes. Unconditional: callers that use this write to keys nobody |
| 152 | else writes, so there is no race to guard against. |
| 153 | """ |
| 154 | return await asyncio.to_thread(_put_bytes_sync, key, body, content_type, content_encoding) |
| 155 | |
| 156 | |
| 157 | async def get_bytes(key: str) -> Optional[Tuple[bytes, str]]: |
nothing calls this directly
no outgoing calls
no test coverage detected