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.3.tar.gz
(3.1 kB
view hashes)
Built Distributions
PyConfigMaker-1.3-py3.8.egg
(6.3 kB
view hashes)
Close
Hashes for PyConfigMaker-1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e809d9ced32fbf95d438695008ce85e329f4d68e8e9ea897c41c72e6210c933 |
|
MD5 | bda4dd8921be6f19dd9cd909f2bbac5f |
|
BLAKE2b-256 | bf52b1a70fb4c98721dd59e199b9162d5f5b1713c0b7ceb4f766328cf0621cd4 |