comicbox.transforms.identifiers

source module comicbox.transforms.identifiers

Identifier Fields.

Functions

source create_identifier_primary_source(id_source: IdSources)dict

Create identifier primary source.

source identifiers_to_cb(native_identifiers: set[str] | None, naked_id_source: Any)dict

Parse identifier struct from a string or sequence.

source identifiers_transform_to_cb(identifiers_tag: str, naked_id_source: IdSources)MetaSpec

Transform identifier tags to comicbox identifiers.

source identifiers_transform_from_cb(identifiers_tag: str)MetaSpec

Transform comicbox identifiers identifier tag.

source url_to_cb(native_url: str | dict)tuple[str, dict]

Parse one url into identifier.

source urls_to_cb(urls: Any)dict

Parse url tags into identifiers.

source urls_transform_to_cb(urls_tag: str)MetaSpec

Transform urls tags to comicbox identifiers.

source url_from_cb(id_source_str: str, comicbox_identifier: dict)str

Unparse one identifier into one url tag.

source urls_transform_from_cb(urls_tag: str)MetaSpec

Transform comicbox identifiers to urls tags.