comicbox.identifiers.urns

source module comicbox.identifiers.urns

Universal Resource Name support.

Functions

source parse_urn_identifier_and_warn(tag: str)tuple[IdSources | None, str, str]

Parse an identifier from a tag and log a debug warning.

source parse_urn_identifier(tag: str)tuple[IdSources | None, str, str]

Parse an identifier from a tag.

source parse_string_identifier(item: str, default_id_source: IdSources | None = None)tuple[IdSources | None, str, str]

Parse identifiers from strings or xml dicts.

source to_urn_string(id_source_str: str, id_type: str, id_key_str: str)str

Compose an urn string.