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.6.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for PyConfigMaker-0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d9641455a86645297fc4526ba75446d9c1c55dec1a3c9158c541e3c5f9d1485 |
|
MD5 | 02a4e103cb93149e81b7342362f50bae |
|
BLAKE2b-256 | 2413917aa72d88e371c84bf3083a916b8b7425a8dafb4ffb37487837ce6d7d54 |