Skip to content

Microndgt/pyconf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyconf

Configuration for Humans in Python3.

pyconf is an INI/py/yml configuration parsing package, written for humans.

Installation

Install pyconf with pip:

pip install git+https://github.com/Microndgt/pyconf.git

Usage

ini config file

import pyconf
c = pyconf.load('tests/sample.conf', config_class=pyconf.IniConfig)
print(c['path'])
# some_path

python config file

import pyconf
c = pyconf.load('tests/sample.py', config_class=pyconf.PyConfig)
print(c['path'])
# some_path

yaml config file

import pyconf
c = pyconf.load('tests/sample.yml', config_class=pyconf.YamlConfig)
print(c['path'])
# some_path

Tests

Run the tests with

python -m tests.test_ini_configs
python -m tests.test_py_configs
python -m tests.test_yaml_configs

History

0.1.1

  1. support the yaml config file

0.1.0

  1. change the Architecture
  2. support the python config file

0.0.1

  1. init project
  2. ini config parser done

About

Configuration for Humans

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages