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.4.2.tar.gz
(22.6 kB
view details)
Built Distribution
File details
Details for the file conficus-0.4.2.tar.gz
.
File metadata
- Download URL: conficus-0.4.2.tar.gz
- Upload date:
- Size: 22.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
f17d77437d49728dde4d0065c2810ab4493fc02df762b3cf243194b7ffe6e0ee
|
|
MD5 |
d1c65f1576936c3788e6da5410375ea6
|
|
BLAKE2b-256 |
56034a433de30038c486f3f34ee7096f023c413afc3a48e3455b46928f403222
|
File details
Details for the file conficus-0.4.2-py2.py3-none-any.whl
.
File metadata
- Download URL: conficus-0.4.2-py2.py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
d0e8c1ec4e9e430eee19dd6ade33299499fd1b73111dee33406f3fcd5186dc8c
|
|
MD5 |
ef5e73624a95128e1e0782147b85a27f
|
|
BLAKE2b-256 |
d4a889b00c5cfbde5116dd6f3c6d4ecc41ce97f17dc3abf5d88887889011f22c
|