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.1.1.tar.gz
(3.0 kB
view hashes)
Built Distributions
PyConfigMaker-1.1.1-py3.8.egg
(5.9 kB
view hashes)
Close
Hashes for PyConfigMaker-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d142ecca9a2483e4c7fa3b2ea3acda7b873c844a7615fe1f3afc19e37002749 |
|
MD5 | a63c71bdc3be92eda61ad3eb4a1a77fc |
|
BLAKE2b-256 | 20e03645647c8963ef05e4747c8afe378a405829ee42dc8b5ecd2d78128fbfac |