[docs] package comicbox.identifiers
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
"""Identifier consts.""" import re from comicbox.enums.comicbox import AlternateIdSources, IdSources ID_SOURCE_VALUES = (id_source.value for id_source in IdSources) DEFAULT_ID_SOURCE = IdSources.COMICVINE DEFAULT_ID_TYPE = "issue" _ALL_ID_SOURCES = ( *ID_SOURCE_VALUES, *(id_source.value for id_source in AlternateIdSources), ) IDENTIFIER_RE_EXP = ( r"(?P<id_source>" + r"|".join(_ALL_ID_SOURCES) + r"):?(?P<id_key>[\w-]+)" ) COMICVINE_LONG_ID_KEY_EXP = r"(?P<id_type>\d{4})-(?P<id_key>\d+)" PARSE_COMICVINE_RE = re.compile(COMICVINE_LONG_ID_KEY_EXP)
From here you can search these documents. Enter your search terms below.