MCPcopy
hub / github.com/msgspec/msgspec / get

Method get

examples/asyncio-kv/kv.py:154–156  ·  view source on GitHub ↗

Get a key from the KV store, returning None if not present

(self, key: str)

Source from the content-addressed store, hash-verified

152 return msgspec.msgpack.decode(buffer)
153
154 async def get(self, key: str) -> str | None:
155 """Get a key from the KV store, returning None if not present"""
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"""

Callers 15

setup.pyFile · 0.80
_origin_args_metadataFunction · 0.80
_translate_innerMethod · 0.80
to_schemaMethod · 0.80
_get_class_annotationsFunction · 0.80
_apply_paramsFunction · 0.80
get_class_annotationsFunction · 0.80
package_not_installedFunction · 0.80
test_boundsMethod · 0.80
handle_requestMethod · 0.80

Calls 2

requestMethod · 0.95
GetClass · 0.85

Tested by 3

test_boundsMethod · 0.64