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 details)
Built Distribution
File details
Details for the file config_parser-0.0.1.tar.gz
.
File metadata
- Download URL: config_parser-0.0.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 907a82d8a13fbbff5d962800feb0aedf345328c2e3d76da908bf049cca8cf676 |
|
MD5 | 4ce8443acaa0b46946c442da74211825 |
|
BLAKE2b-256 | d0df68502838a08df85d02b8996277cc5b8b67fe2aa7c112aa4dd67ff471b55e |
File details
Details for the file config_parser-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: config_parser-0.0.1-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f268cc4dd4eee974fe8cc8d724302b4d7c6b4bcf3243638395abf59f8d49ec87 |
|
MD5 | 5afa1e6a194deb525595e0512df1dd38 |
|
BLAKE2b-256 | ebf4efb747a478f1ea0d73d80777b1fd7340cdebcc08d11c6f3f733037b90a50 |