Generates a config and an argument parser from a yaml file
Project description
PyConfigMaker
A tiny package which automatically builds config objects and an argument parser from yaml script
A short usage example:
from sys import argv
from config_parser import config_parser
parser = config_parser.ConfigGenerator('sample_data/example.yml')
parsed = parser(argv[1:])
print(parsed)
print(parsed.PATHS.model_save_path)
parser.dump_config('test/test.yml')
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
PyConfigMaker-1.4.tar.gz
(3.2 kB
view details)
Built Distributions
PyConfigMaker-1.4-py3.8.egg
(6.6 kB
view details)
File details
Details for the file PyConfigMaker-1.4.tar.gz
.
File metadata
- Download URL: PyConfigMaker-1.4.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
affcbbb5476ce36667b66309a92cf2d2a0b7197981426e9de01cbb12e5a8b8f2
|
|
MD5 |
2a4856193431d1c1c9da460a80536310
|
|
BLAKE2b-256 |
5806bbf555d978d372b96addf36b89718bc2a8a8f24f3bd5eb79539d33e6df65
|
File details
Details for the file PyConfigMaker-1.4-py3.8.egg
.
File metadata
- Download URL: PyConfigMaker-1.4-py3.8.egg
- Upload date:
- Size: 6.6 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
89cbb28f8e74bfa1439b0fdfe2b709089d2d34ac7a9927f4712693c28a49bd36
|
|
MD5 |
969dcf1410bfb2e64839fca9aa92b7d9
|
|
BLAKE2b-256 |
8288679d1646632a05bc005f53975abac8bb40f801a00d80f9101fe7cdf2cf99
|
File details
Details for the file PyConfigMaker-1.4-py3-none-any.whl
.
File metadata
- Download URL: PyConfigMaker-1.4-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
981b62e3a42cec2e9f425d89c8380397262f48ca163fbd490e223fb15682ae77
|
|
MD5 |
ad8f2b3c7c1f457b0216a1479f15a56d
|
|
BLAKE2b-256 |
1f70aaaf2665e6372506c5e9b8a98c5d8878a035b95e66c392fa70b0f2818c31
|