skip to navigation
skip to content

configloader 1.0.1

Python dict that supports common app configuration-loading scenarios.

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')
 
File Type Py Version Uploaded on Size
configloader-1.0.1-py2.py3-none-any.whl (md5) Python Wheel 3.4 2015-10-14 6KB
configloader-1.0.1.tar.gz (md5) Source 2015-10-14 14KB