/PyConfigMaker

A yaml parser which automatically writes and reads config files to easily usable python namedtuples:w

Primary LanguagePythonMIT LicenseMIT

PyConfigMaker

PyPI

A tiny package which automatically builds config objects and an argument parser from yaml script

PyPi Github

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')