miniproto.auth.dc.dc_options_from_env
miniproto.auth.dc.dc_options_from_env
Section titled “miniproto.auth.dc.dc_options_from_env”dc_options_from_env(environ: Mapping[str, str] | None = None) -> tuple[DCOption, ...]Read local test-DC overrides from environment-style mappings.
Parameters:
- environ (
Mapping[str, str] | None) – Mapping to read instead of :data:os.environ; defaults to the process environment.
Returns:
tuple[DCOption, …]– Static options for populatedMINIPROTO_TEST_DC1throughMINIPROTO_TEST_DC5entries.
Raises:
ValueError– If an override is not a validhost:portor[ipv6]:portendpoint.