MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / get_direction_entry

Function get_direction_entry

config/direction_lexicon.py:482–488  ·  view source on GitHub ↗
(direction_key: str, lexicon: Optional[Dict[str, Any]] = None)

Source from the content-addressed store, hash-verified

480
481
482def get_direction_entry(direction_key: str, lexicon: Optional[Dict[str, Any]] = None) -> Optional[Dict[str, Any]]:
483 normalized_key = normalize_direction_key(direction_key)
484 if not normalized_key:
485 return None
486 current_lexicon = lexicon or load_lexicon()
487 entry = current_lexicon.get(normalized_key)
488 return copy.deepcopy(entry) if entry else None
489
490
491def format_direction_label(

Calls 3

normalize_direction_keyFunction · 0.85
load_lexiconFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected