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.2.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

conficus-0.2.2-py2.py3-none-any.whl (8.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file conficus-0.2.2.tar.gz.

File metadata

  • Download URL: conficus-0.2.2.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for conficus-0.2.2.tar.gz
Algorithm Hash digest
SHA256 9aad46ae003aa1e33d9493025830914ac4b8a276777bfe6cf498a45029ce1a43
MD5 afdc2afb6a4983c86bc4922af28293c2
BLAKE2b-256 151383b19834d39fdaee48c7555d1f2b29ea0aa16a081e0af2038fc04a648c53

See more details on using hashes here.

File details

Details for the file conficus-0.2.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for conficus-0.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d17294bffc73f415da05c0fdf616cb6c99903cb0366029ca14c15c2595ce4cd3
MD5 6681824aadec0837cae057838023eb07
BLAKE2b-256 cece4163bb0ccfa5cec796a77dae327202afea13d257bea4238de51fbad7567b

See more details on using hashes here.

Supported by

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