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!

A simple Configuration System which allows you to import and override or merge configuration parameters

Project Description
configcascade
=============

.. image:: https://travis-ci.org/felixcarmona/configcascade.png?branch=master
:target: https://travis-ci.org/felixcarmona/configcascade

.. image:: https://coveralls.io/repos/felixcarmona/configcascade/badge.png?branch=master
:target: https://coveralls.io/r/felixcarmona/configcascade?branch=master

.. image:: https://pypip.in/d/configcascade/badge.png
:target: https://pypi.python.org/pypi/configcascade/
:alt: Downloads

.. image:: https://pypip.in/v/configcascade/badge.png
:target: https://pypi.python.org/pypi/configcascade/
:alt: Latest Version


A simple Configuration System which allows you to import and override or merge configuration parameters

Example
-------

.. code-block:: python
from configcascade import Settings, YamlFileLoader


file_loader = YamlFileLoader()
settings = Settings(file_loader, ['foo']) # the second parameter are a the settings you which you want to merge instead of override when you import
result = settings.compile("file_a.yml")

**file_a.yml:**

.. code-block:: yaml

imports:
- file_b.yml
- file_c.yml

foo:
- x
- y
- z

test:
- a


**file_b.yml:**

.. code-block:: yaml

foo:
- 5
- 7

bbbb: 8

**file_c.yml:**

.. code-block:: yaml

test:
- b

**The generated result will be:**

.. code-block:: yaml

foo:
- x
- y
- z
- 5
- 7

bbbb: 8

test:
- a
Release History

Release History

This version
History Node

1.0.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
configcascade-1.0.0.tar.gz (2.5 kB) Copy SHA256 Checksum SHA256 Source Dec 17, 2014

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