DotConfig-0.1.1
توضیحات
A simpler way to read configuration files.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | DotConfig-0.1.1 |
| نام | DotConfig |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jonas Ericsson |
| ایمیل نویسنده | jonas@agilefrog.se |
| آدرس صفحه اصلی | http://github.com/frawgie/dotconfig |
| آدرس اینترنتی | https://pypi.org/project/DotConfig/ |
| مجوز | LICENSE.txt |
DotConfig
=========
A simpler way to read configuration files.
dotconfig provides a very simple way to read options from a config file.
It is currently read-only.
How to use
----------
Example:
data.config
~~~~~~~~~~~
::
[network]
port: 8080
example.py
~~~~~~~~~~
::
import dotconfig
config = dotconfig.Config("data.config")
config.network.port # returns the port number as string
Contribute
----------
Feel free to fork and add anything you find is missing. :)
نحوه نصب
نصب پکیج whl DotConfig-0.1.1:
pip install DotConfig-0.1.1.whl
نصب پکیج tar.gz DotConfig-0.1.1:
pip install DotConfig-0.1.1.tar.gz