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.0.tar.gz
(2.8 kB
view hashes)
Built Distributions
PyConfigMaker-1.0-py3.8.egg
(5.5 kB
view hashes)
Close
Hashes for PyConfigMaker-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8117d73d044959a5f533575c10b113abac91f2a67614434be514d3a54b2b0a92 |
|
MD5 | 1256dd88f5625dd6aa60a86f5d7f734e |
|
BLAKE2b-256 | 200287d4fe6dbacce174679d0b77cebecd478fdee751152e575140e8ed42f5f0 |