Configuration library wrappers
Project description
configparser
Simplified runtime configs for Python
Examples can be seen in examples/
To use configparser:
pip install git+git://github.com/mattpaletta/configparser.git
You can call it in your program using:
p = Parser(argparse_file = "argparse.yml").get()
The paramters are:
- argparse_file: your argparse definitions, layed out in JSON or yaml files.
- config_file_key: a string to the optional config file key in the argparse file to use to allow the user to run custom runtime config files.
- environ_key_mapping: a dictionary containing the config file key to the environment key (bash environment)
The arguments will be applied on top of each other in the following order:
- defaults
- config files (in the order defined)
- environment variables
- runtime
This order cannot be modified at this time.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
config_parser-0.0.1.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for config_parser-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f268cc4dd4eee974fe8cc8d724302b4d7c6b4bcf3243638395abf59f8d49ec87 |
|
MD5 | 5afa1e6a194deb525595e0512df1dd38 |
|
BLAKE2b-256 | ebf4efb747a478f1ea0d73d80777b1fd7340cdebcc08d11c6f3f733037b90a50 |