Skip to main content

ini config library

Project description

version-badge coverage-badge

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


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)

Uploaded Source

Built Distribution

conficus-0.2.3-py2.py3-none-any.whl (8.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page