–auth metron:user=AJSlater –auth metron:pass=’hunter2’ –auth metron:url=https://metron.cloud –auth comicvine:key=ABCD1234 –auth comicvine:url=https://comicvine.gamespot.com/api
comicbox.formats.base.online.cli_overrides¶
source module comicbox.formats.base.online.cli_overrides
Parse the repeatable per-source CLI --auth overrides.
The CLI flag --auth is repeatable with the form <source>:<field>=<value>. Each occurrence is collected and turned into a per-source field dict the credential resolver consumes.
Examples
Classes
-
CliOverrides — CLI flag values for per-source credentials.
source dataclass CliOverrides(per_source: Mapping[str, Mapping[str, str]] = field(default_factory=dict))
CLI flag values for per-source credentials.
per_source maps source name → {field_name: value}. Only fields explicitly provided on the CLI appear; missing fields fall through to env/config/keyring.
Methods
-
from_auth_list — Build from a list of parsed
--authstrings.
source classmethod CliOverrides.from_auth_list(entries: Iterable[str]) → CliOverrides
Build from a list of parsed --auth strings.