Skip to main content

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 files for confiskus 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for confiskus 1.0.6
File Size Uploaded
confiskus-1.0.6.tar.gz 3.0 kB Details

Release files / confiskus-1.0.6.tar.gz

Download URL confiskus-1.0.6.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ca817e8a48dfa4a195c20d2405a313fe2ffc73bca33abe03541a3190b5f34973
BLAKE2b-256 checksum
How to use checksums
16cf1ca1b4661c95989c6cfc61b5106759d1c5f7c2bae3a7250450b3431837e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.6 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page