Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Installation

pip3 install config-library

Install Variations

variationinformation
config-library[all]adds all dependencies from the variations below
config-library[validation]adds support to validate the loaded configuration against a pydantic model
config-library[dotenv]adds support to load .env files
config-library[json5]adds support to load .json5 files
config-library[toml]adds support to load .toml files
config-library[yaml]adds support to load .yaml files

Supported Config-Types

extensionrequireslink (for more information)
.ini/.conf/.config-https://en.wikipedia.org/wiki/INI_file
.envconfig-library[dotenv]https://pypi.org/project/python-dotenv/
.json-https://en.wikipedia.org/wiki/JSON
.jsonc-https://changelog.com/news/jsonc-is-a-superset-of-json-which-supports-comments-6LwR
.json5config-library[json5]https://json5.org/
.tomlconfig-library[toml] or python3.11+https://toml.io/
.yaml/.ymlconfig-library[yaml]https://en.wikipedia.org/wiki/YAML
.xml-https://en.wikipedia.org/wiki/XML