ConfigLoader is a Python dictionary subclass that provides convenience methods for common app configuration-loading scenarios, inspired by flask.Config.
Features
Easily load config settings from:
Python modules, classes or objects
JSON files
YAML files
Environment variables
Supports Python 2.6+ and 3.3+.
Installation
Install ConfigLoader from PyPI using pip:
pip install configloader[all]
The [all] indicates that all optional dependencies (AttrDict and PyYAML) should be installed.
Example usage
>>> from configloader import ConfigLoader
>>> config = ConfigLoader
>>> config.update_from_object('my_app.settings')
>>> config.update_from_yaml_env('YAML_SETTINGS_PATH')
Documentation
Release files for configloader 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| configloader-1.0.1.tar.gz | 15.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| configloader-1.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size:21.8 kB
Release files / configloader-1.0.1.tar.gz
| Download URL | configloader-1.0.1.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2613c1b8c838e1f3046bf6bb4a11ecfaf6e3950e5a2aa1b8569b39c9171a044
|
|
BLAKE2b-256 checksum How to use checksums |
03c62d4c864b0dff2285199de57b213487d54aa6a235fb664a862361b5c08057
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / configloader-1.0.1-py2.py3-none-any.whl
| Download URL | configloader-1.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e2033a2328f704c68479423ae0ad3dcc08767270c5f57f562f2aa0bd370c16b9
|
|
BLAKE2b-256 checksum How to use checksums |
07d9d8ce151635877c9dd243521e80cf4e56afbccb302ea5d4dab62f923cf809
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |