Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/cvoelcker/pyconfigmaker
- Owner: cvoelcker
- License: mit
- Created: 2019-11-17T10:02:45.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-26T15:07:22.000Z (about 5 years ago)
- Last Synced: 2024-11-30T13:51:06.985Z (22 days ago)
- Language: Python
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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_parserparser = 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')
```