yera.apps.registry

Process-local registry mapping app IDs to their metadata.

Used by the decorator to resolve the actual app name (including nested apps) when constructing AppRuntimeError on the consumer side.

Symbols

def get_app_metadata — Look up metadata for the given app_id.
def get_app_name — Return the display name for the given app_id, or None if unknown.
def register_app — Register metadata for a given app_id in the current process.

get_app_metadata

get_app_metadata(
    app_id: str,
) → AppMetadata | None

Look up metadata for the given app_id.

get_app_name

get_app_name(
    app_id: str,
) → str | None

Return the display name for the given app_id, or None if unknown.

register_app

register_app(
    app_id: str,
    metadata: AppMetadata,
) → None

Register metadata for a given app_id in the current process.