This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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')
Release History

Release History

This version
History Node

1.0.1

History Node

1.0.0

History Node

1.0.0.dev1

History Node

1.0.0.dev0

History Node

0.2.0

History Node

0.1.1

History Node

0.1.0

History Node

0.1.0.dev0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
configloader-1.0.1-py2.py3-none-any.whl (6.5 kB) Copy SHA256 Checksum SHA256 3.4 Wheel Oct 14, 2015
configloader-1.0.1.tar.gz (15.3 kB) Copy SHA256 Checksum SHA256 Source Oct 14, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting