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.tar.gz
(2.9 kB
view hashes)
Built Distributions
PyConfigMaker-1.1-py3.8.egg
(5.9 kB
view hashes)
Close
Hashes for PyConfigMaker-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 780f0edc9352f51824d62ce41163c4bf2788d6b01e6e8b7d6be9ebb4d9f0f3f9 |
|
MD5 | 2821c3c0f98b15f716188ac3e17863d8 |
|
BLAKE2b-256 | 97afe2ee976a0f53dca99853183fcdda92ddd7de5b76281716926ca06fc74568 |