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.
Release files for config-parser 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| config_parser-0.0.1.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| config_parser-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.9 kB
Release files / config_parser-0.0.1.tar.gz
| Download URL | config_parser-0.0.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
907a82d8a13fbbff5d962800feb0aedf345328c2e3d76da908bf049cca8cf676
|
|
BLAKE2b-256 checksum How to use checksums |
d0df68502838a08df85d02b8996277cc5b8b67fe2aa7c112aa4dd67ff471b55e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / config_parser-0.0.1-py3-none-any.whl
| Download URL | config_parser-0.0.1-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f268cc4dd4eee974fe8cc8d724302b4d7c6b4bcf3243638395abf59f8d49ec87
|
|
BLAKE2b-256 checksum How to use checksums |
ebf4efb747a478f1ea0d73d80777b1fd7340cdebcc08d11c6f3f733037b90a50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|