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.

Source Distribution

PyConfigMaker-1.0.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distributions

PyConfigMaker-1.0-py3.8.egg (5.5 kB view hashes)

Uploaded Source

PyConfigMaker-1.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page