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-0.7.tar.gz
(2.7 kB
view hashes)
Built Distributions
PyConfigMaker-0.7-py3.8.egg
(5.2 kB
view hashes)
Close
Hashes for PyConfigMaker-0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1befae113c559a7eeb11659c8c117c4b5f73f72f9a3be4643d806f1d6b7c26e0 |
|
MD5 | 98dae1082ff28fba1053ab4164fa87e4 |
|
BLAKE2b-256 | 5be7a898f53b6f2c4fe1da42c1323dcef5aecdf661ccd0e7e09ae749257310d5 |