Python dict that supports common app configuration-loading scenarios.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file configloader-1.0.1.tar.gz.
File metadata
- Download URL: configloader-1.0.1.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2613c1b8c838e1f3046bf6bb4a11ecfaf6e3950e5a2aa1b8569b39c9171a044
|
|
| MD5 |
34ff2de601a1d054161ed057e7a8eb16
|
|
| BLAKE2b-256 |
03c62d4c864b0dff2285199de57b213487d54aa6a235fb664a862361b5c08057
|
File details
Details for the file configloader-1.0.1-py2.py3-none-any.whl.
File metadata
- Download URL: configloader-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2033a2328f704c68479423ae0ad3dcc08767270c5f57f562f2aa0bd370c16b9
|
|
| MD5 |
c7a91dd22ddcb031d8e719867a852542
|
|
| BLAKE2b-256 |
07d9d8ce151635877c9dd243521e80cf4e56afbccb302ea5d4dab62f923cf809
|