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

Uploaded Source

Built Distribution

conficus-0.4.1-py2.py3-none-any.whl (11.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: conficus-0.4.1.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.2

File hashes

Hashes for conficus-0.4.1.tar.gz
Algorithm Hash digest
SHA256 bad0199ff0578bffe51f3c2a8c76a9c1efcfa13ace20213e3db0debcf45cc3ad
MD5 3b0b83822638d06ca6a02e4c8ae095f4
BLAKE2b-256 0428b9db6fb53558dbe8766f4670a1a15f41c1845fb64e1cb277198c0f893888

See more details on using hashes here.

File details

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

File metadata

  • Download URL: conficus-0.4.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.2

File hashes

Hashes for conficus-0.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e502b3c3f21339b338ab0d434874bd359fb7c6e69eda2b28e9004da0c0bb5525
MD5 55570aa6ee795e9219035f8e6c50936d
BLAKE2b-256 d6cfae4e4b34f8755cd32c5789cc5c6787c054055916ee4caf08ad87dd8bcbd9

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