Skip to main content

Generates a config and an argument parser from a yaml file

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for PyConfigMaker, version 1.4
Filename, size File type Python version Upload date Hashes
Filename, size PyConfigMaker-1.4-py3.8.egg (6.6 kB) File type Egg Python version 3.8 Upload date Hashes View hashes
Filename, size PyConfigMaker-1.4-py3-none-any.whl (4.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size PyConfigMaker-1.4.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page