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

Uploaded Source

Built Distribution

conficus-0.2.4-py2.py3-none-any.whl (9.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for conficus-0.2.4.tar.gz
Algorithm Hash digest
SHA256 49cdb22efc8e4a07b6dd35878a6c0bfc79f37cfd31ff33f60176f6001c6bd0ed
MD5 502db9960e1670e71338d263e6ee0ae6
BLAKE2b-256 af5483e877a1448c75b37fd13a00922c1e6fe17b6a206e0222d06527577dff9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for conficus-0.2.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3c8036bdd7577d71b61b27303d537b4b99213da58c46c55a9e80161a39767664
MD5 4585b802fb766c13d8b86cf4a31dbd7d
BLAKE2b-256 010aef26e56b7efe189cd55d28b6e52a2a482d03f36c16bdd9e13214717d4b12

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