confiskus-1.0.6
توضیحات
INI style files parser with basic inheritance feature.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | confiskus-1.0.6 |
| نام | confiskus |
| نسخه کتابخانه | 1.0.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Michal Kuffa |
| ایمیل نویسنده | michal.kuffa@gmail.com |
| آدرس صفحه اصلی | https://github.com/beezz/confiskus |
| آدرس اینترنتی | https://pypi.org/project/confiskus/ |
| مجوز | BSD |
confiskus
=========
Confiskus is ini-file parse helper with simple inheritance feature.
Install
-------
.. code:: bash
$ 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``.
.. code:: pycon
>>> import confiskus
>>> config = confiskus.Confiskus().read('dev_conf.ini')
>>> config.get('webservice', 'url')
'https://localhost:6543'
>>> config.get('webservice', 'user')
'web_service_user'
نحوه نصب
نصب پکیج whl confiskus-1.0.6:
pip install confiskus-1.0.6.whl
نصب پکیج tar.gz confiskus-1.0.6:
pip install confiskus-1.0.6.tar.gz