Skip to content

braingram/cascading_config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A cascading configuration file object built on top of the ConfigParser

Load a series of configuration files where later files shadow earlier

For example loading 3 configuration files in order:

1) default:
    [main]
    foo: 1
    bar: 2
    baz: 3
2) user (~/.foo_module):
    [main]
    foo: 4
    bar: 5
3) local (./foo_module):
    [main]
    foo: 7

Will result in:
    foo == 7
    bar == 5
    baz == 3

Also, parse command line options such as:
    ./script.py main foo 10

About

Cascading configuration file for python

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages