INNER CODE UNIT · Python
_registry_module_names
ministackorg/ministack · ministack/app.py:451
def _registry_module_names():
"""Return every primary and dispatched module declared by the registry."""
return {
module
for config in SERVICE_REGISTRY.values()
for module in (config["module"], *config.get("sub_modules", ()))
}
def _registry_state_map():
"""Map persistence-file keys to modules declared by ``SERVICE_REGISTRY``.
A primary module normally uses its module name for the filename. Lambda
retains its long-standing ``lambda.json`` filename through ``state_key``;
sub-modules always use their own names.
"""
state_map = {}
for config in SERVICE_REGISTRY.values():