MCPcopy
hub / github.com/msgspec/msgspec / put

Method put

examples/asyncio-kv/kv.py:158–160  ·  view source on GitHub ↗

Put a key-val pair in the KV store

(self, key: str, val: str)

Source from the content-addressed store, hash-verified

156 return await self.request(Get(key))
157
158 async def put(self, key: str, val: str) -> None:
159 """Put a key-val pair in the KV store"""
160 return await self.request(Put(key, val))
161
162 async def delete(self, key: str) -> None:
163 """Delete a key-val pair from the KV store"""

Callers

nothing calls this directly

Calls 2

requestMethod · 0.95
PutClass · 0.85

Tested by

no test coverage detected