cityhall-0.0.5
توضیحات
A library for accessing City Hall Setting Server
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cityhall-0.0.5 |
| نام | cityhall |
| نسخه کتابخانه | 0.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Alex Popa |
| ایمیل نویسنده | alex.popa@digitalborderlands.com |
| آدرس صفحه اصلی | https://github.com/f00f-nyc/cityhall-python |
| آدرس اینترنتی | https://pypi.org/project/cityhall/ |
| مجوز | AGPL |
This is the python library for City Hall Enterprise Settings Server
ABOUT
This project is written in Python 2.7 and can be installed using:
pip install cityhall
USAGE
The intention is to use the built-in City Hall web site for actual
settings management, and then use this library for consuming those
settings, in an application. As such, there are only a few commands to
be familiar with:
from cityhall import Settings
cityhallSettings = Settings(url, user, password) - Must be called to
initiate a session with City Hall. The password should be in
plaintext, it will be hashed by the library.
cityhallSettings.logout() - To be called when the session is over.
cityhallSettings.get() - This should be the way to retrieve a value.
To get the value of '/some_app/value1', use:
cityhallSettings.Get('/some_app/value1')
For more in depth information about this library, please check the wiki.
LICENSE
City Hall source files are made available under the terms of the GNU Affero General Public License (AGPL).
نحوه نصب
نصب پکیج whl cityhall-0.0.5:
pip install cityhall-0.0.5.whl
نصب پکیج tar.gz cityhall-0.0.5:
pip install cityhall-0.0.5.tar.gz