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_file('config.yml')
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
configloader-1.0.0.dev1.tar.gz
(14.5 kB
view hashes)
Built Distribution
Close
Hashes for configloader-1.0.0.dev1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7276528ab697e1c57b3bb64565c850623b97b7ebf7053e46d61d6c990e263b9d |
|
MD5 | 02bce2214aee9dd522504e4af1e4a985 |
|
BLAKE2b-256 | 27c714d81ba1c9098841441c5df2111b2efa57d7e4ba10f44be3263bc6af4d46 |