Skip to main content
Help us improve Python packaging – donate today!

INI style files parser with basic inheritance feature.

Project Description

Confiskus is ini-file parse helper with simple inheritance feature.

Install

$ pip install confiskus

Usage

Inheritance is accomplished by extends option in default section.

Content of dev_conf.ini.

[default]
extends = base.ini

[webservice]
url = https://localhost:6543

Content of base.ini.

[webservice]
user = web_service_user
password = papluhaogrcalmikrpce
url = https://ws.otherserver.com

Now while reading dev_conf.ini confiskus will pick up also base.ini.

>>> import confiskus
>>> config = confiskus.Confiskus().read('dev_conf.ini')
>>> config.get('webservice', 'url')
'https://localhost:6543'
>>> config.get('webservice', 'user')
'web_service_user'

Release history Release notifications

This version
History Node

1.0.6

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
confiskus-1.0.6.tar.gz (3.0 kB) Copy SHA256 hash SHA256 Source None Nov 3, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page