Skip to main content
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!

An extendable configuration that enables you to configure your application via python modules, config files, environment variables and more!

Project Description

ultra-config

An extendable configuration that enables you to configure your application via python modules, config files, environment variables and more!

Installation

pip install ultra-config

Features

  • Load configuration from a variety of sources including environment variables, json files, ini files, and python objects
  • Easily extend with your own configuration mechanisms
  • Offers a global configuration object for you application
  • Easily inject configuration into functions with the ability to override them for testing
  • Ability to fail fast if missing configuration

Examples

global configuration

from ultra_config import GlobalConfig

# Loads all env variables that begin with MY_APP, configuration
# from a json file and a custom override
GlobalConfig.load(env_var_prefix='MY_APP',
                  json_file='/opt/my_app/config.json',
                  overrides={'MY_VAR': 'some_val'})

@GlobalConfig.inject('MY_VAR', value='OTHER_VAR')
def my_func(arg1, value=None):
    print(arg1)
    print(value)

my_func()
# Prints the value of MY_VAR and OTHER_VAR

my_func(value='custom')
# prints the value of MY_VAR and then prints the "custom" since we explicitly passed that in

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2016-07-22)

  • First release on PyPI.
Release History

Release History

This version
History Node

0.6.3

History Node

0.6.2

History Node

0.6.1

History Node

0.6.0

History Node

0.5.1

History Node

0.5.0

History Node

0.4.1

History Node

0.4.0

History Node

0.3.1

History Node

0.3.0

History Node

0.2.1

History Node

0.2.0

History Node

0.1.9

History Node

0.1.7

History Node

0.1.6

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.0

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
ultra_config-0.6.3-py2.py3-none-any.whl (11.5 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Jan 5, 2017
ultra_config-0.6.3.tar.gz (17.3 kB) Copy SHA256 Checksum SHA256 Source Jan 5, 2017

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