asyncutils._internal.unparsed

This submodule automatically reads the config from the file whose path is specified by AUTILSCFGPATH.

Important

Values will be overwritten by command-line arguments when this module runs as a script.

Attributes

C

The contextual portion of the configuration as a flattened dict mapping upper-case keys to values.

N

The frozen part of the configuration as a light namespace-like object.

Z

A dict mapping file extensions to module names for loading config files. Is queried by tools.loadf(). Stable.

c

The path to the config file used, or an empty string if no config file was read.

Functions

l(…)

Load a config file from the given string path or file descriptor (in which case the file extension should be passed but leniently defaults to json), from which the file extension and thus appropriate parsing library is determined.

Module Contents

asyncutils._internal.unparsed.l(path: int, ext: str, /) dict[str, Any][source]
asyncutils._internal.unparsed.l(path: str, ext: str | None = ..., /) dict[str, Any]

Load a config file from the given string path or file descriptor (in which case the file extension should be passed but leniently defaults to json), from which the file extension and thus appropriate parsing library is determined.

asyncutils._internal.unparsed.C: Final[dict[str, Any]]

The contextual portion of the configuration as a flattened dict mapping upper-case keys to values.

asyncutils._internal.unparsed.N: Final[asyncutils._internal.helpers.Bag]

The frozen part of the configuration as a light namespace-like object.

asyncutils._internal.unparsed.Z: Final[dict[str, str]]

A dict mapping file extensions to module names for loading config files. Is queried by tools.loadf(). Stable.

asyncutils._internal.unparsed.c: Final[str]

The path to the config file used, or an empty string if no config file was read.