Configuration for Humans in Python3.
pyconf is an INI/py/yml configuration parsing package, written for humans.
Install pyconf with pip:
pip install git+https://github.com/Microndgt/pyconf.git
import pyconf
c = pyconf.load('tests/sample.conf', config_class=pyconf.IniConfig)
print(c['path'])
# some_path
import pyconf
c = pyconf.load('tests/sample.py', config_class=pyconf.PyConfig)
print(c['path'])
# some_path
import pyconf
c = pyconf.load('tests/sample.yml', config_class=pyconf.YamlConfig)
print(c['path'])
# some_path
Run the tests with
python -m tests.test_ini_configs
python -m tests.test_py_configs
python -m tests.test_yaml_configs
- support the yaml config file
- change the Architecture
- support the python config file
- init project
- ini config parser done