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.0.tar.gz
(21.3 kB
view details)
Built Distribution
File details
Details for the file conficus-0.4.0.tar.gz
.
File metadata
- Download URL: conficus-0.4.0.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
163f556f365c857de91474847883d24b82148f64c701f149329be4f5bb8bf943
|
|
MD5 |
715b5a034c220fe5686761740a137b64
|
|
BLAKE2b-256 |
eff81fdc07e2918269243817d63ed933d159d0ec709f23b88fb0ab0d576297ca
|
File details
Details for the file conficus-0.4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: conficus-0.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
aa008dbfe64c818c325914ac4ee333445e1901e9251f7db67fe90d90db1d091e
|
|
MD5 |
388b16ac21c23147c0a02c24163ac6b3
|
|
BLAKE2b-256 |
22a638183259435b5e529e700eaa788d3c821edbe21c8bd8ac0896d3fd4aeca9
|