MCPcopy
hub / github.com/hugapi/hug / exists

Method exists

hug/store.py:44–46  ·  view source on GitHub ↗

Return whether key exists or not.

(self, key)

Source from the content-addressed store, hash-verified

42 return data
43
44 def exists(self, key):
45 """Return whether key exists or not."""
46 return key in self._data
47
48 def set(self, key, data):
49 """Set data object for given store key."""

Callers 8

test_session_middlewareFunction · 0.95
test_stores_genericallyFunction · 0.80
basic_authenticationFunction · 0.80
unique_usernameFunction · 0.80
check_unique_usernameMethod · 0.80
process_requestMethod · 0.80
process_responseMethod · 0.80
read_fileMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_session_middlewareFunction · 0.76
test_stores_genericallyFunction · 0.64