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.8.tar.gz
(2.8 kB
view hashes)
Built Distributions
PyConfigMaker-0.8-py3.8.egg
(5.4 kB
view hashes)
Close
Hashes for PyConfigMaker-0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba5a2fd08ee87c218dcad4bf825530d551f545d77cc888f4e3ad3bd4fbab14b7 |
|
MD5 | d2e23644df74af54ab1ccb76ae573409 |
|
BLAKE2b-256 | 2b0f612f07dae9e6b60f85c6f5ceef745515e22e712b6ebcfc40876f7505314f |