ini config library
Project description
conficus is a python ini configuration utility. It reads ini-based configuration files into a python dict. conficus provides automatic coercing of values (e.g. str -> int), nested sections, easy access and section inheritance.
Installation
Install the ficus package with pip.
pip install conficus
Quick Start
Basic usage:
>>>
>>> import conficus as ficus
>>>
Configurations can be loaded from a file path string:
>>> config = ficus.load('/Users/mgemmill/config.ini')
>>>
Or from path stored in an environment variable:
>>> config = ficus.load('ENV_VAR_CONFIG_PATH')
>>>
>>> # configuration is just a dictionary:
...
>>> print config['app']['debug']
True
>>>
>>> # with ease of access:
...
>>> print config['app.debug']
True
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
conficus-0.2.3.tar.gz
(13.1 kB
view hashes)
Built Distribution
Close
Hashes for conficus-0.2.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e23ebb895e4c66d3f6573373339a84b4f8f742d421b9967a16de808549a6fc93 |
|
MD5 | b8619b0a1d01b81330816efa2d335573 |
|
BLAKE2b-256 | a631cd62bfcc096e186d804d9236220f22e1ce0cd8b0b53896825c9a116ed454 |