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)
| 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 |