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 details)
Built Distribution
File details
Details for the file conficus-0.2.3.tar.gz
.
File metadata
- Download URL: conficus-0.2.3.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
97f004faa79cc0de4834a89cfc87ca06234392ceb441c8a5deb768a52d9f6e7e
|
|
MD5 |
114514b82bd1ec44b300dd712f2ed9f1
|
|
BLAKE2b-256 |
427403294f3ebdadfefb07b1eadb2b511034952f838c4f59058ed69ab5bf29a1
|
File details
Details for the file conficus-0.2.3-py2.py3-none-any.whl
.
File metadata
- Download URL: conficus-0.2.3-py2.py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e23ebb895e4c66d3f6573373339a84b4f8f742d421b9967a16de808549a6fc93
|
|
MD5 |
b8619b0a1d01b81330816efa2d335573
|
|
BLAKE2b-256 |
a631cd62bfcc096e186d804d9236220f22e1ce0cd8b0b53896825c9a116ed454
|