Metadata formats registry.
Every format is a self-contained package under comicbox.formats.<name> exporting a REGISTRATION: FormatRegistration from its __init__.py. This module assembles the MetadataFormats enum from those registrations.
Bases: Enum
Metadata formats.
Source code in comicbox/formats/__init__.py
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53 | class MetadataFormats(Enum):
"""Metadata formats."""
# The order these are listed is the order of masking. Very important.
FILENAME = _FILENAME_REGISTRATION.format
PDF = _PDF_REGISTRATION.format
PDF_XML = _PDF_XML_REGISTRATION.format
COMET = _COMET_REGISTRATION.format
COMIC_BOOK_INFO = _COMIC_BOOK_INFO_REGISTRATION.format
COMIC_INFO = _COMIC_INFO_REGISTRATION.format
METRON_INFO = _METRON_INFO_REGISTRATION.format
VERSEDB_API = _VERSEDB_API_REGISTRATION.format
METRON_API = _METRON_API_REGISTRATION.format
COMICVINE_API = _COMICVINE_API_REGISTRATION.format
COMICBOX_YAML = _COMICBOX_YAML_REGISTRATION.format
COMICBOX_JSON = _COMICBOX_JSON_REGISTRATION.format
COMICBOX_CLI_YAML = _COMICBOX_CLI_YAML_REGISTRATION.format
|