MCPcopy
hub / github.com/mxrch/GHunt / get_api_key

Function get_api_key

ghunt/helpers/knowledge.py:21–24  ·  view source on GitHub ↗
(key_name: str)

Source from the content-addressed store, hash-verified

19 return keys.get(key_name, {}).get("origin")
20
21def get_api_key(key_name: str) -> str:
22 if key_name not in keys:
23 raise GHuntKnowledgeError(f'The key "{key_name}" has not been found in GHunt\'s API keys knowledge.')
24 return keys.get(key_name, {}).get("key")
25
26def get_gmaps_type_translation(type_name: str) -> str:
27 if type_name not in types_translations:

Callers 1

_load_apiMethod · 0.90

Calls 1

GHuntKnowledgeErrorClass · 0.90

Tested by

no test coverage detected