A library for accessing City Hall Setting Server
Project description
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).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file cityhall-0.0.11.tar.gz
.
File metadata
- Download URL: cityhall-0.0.11.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f122f2b4c7ddb0babeb6738d7ecfeeea67a93eb779045b5556addb7e2ee1f023 |
|
MD5 | 7cf346fec6e6cda11e12d21ef4f98193 |
|
BLAKE2b-256 | cf6913ced75df862bcc3684fae8933cf3b20e500f3cd86a57c3c0d737f699755 |