Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cvoelcker/pyconfigmaker

A yaml parser which automatically writes and reads config files to easily usable python namedtuples:w
https://github.com/cvoelcker/pyconfigmaker

Last synced: 5 days ago
JSON representation

A yaml parser which automatically writes and reads config files to easily usable python namedtuples:w

Awesome Lists containing this project

README

        

# PyConfigMaker

![PyPI](https://img.shields.io/pypi/v/pyconfigmaker?label=PyConfigMaker&link=https://pypi.org/project/PyConfigMaker/)

A tiny package which automatically builds config objects and an argument parser from yaml script

[PyPi](https://pypi.org/project/PyConfigMaker/)
[Github](https://github.com/cvoelcker/PyConfigMaker)

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