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).
Metadata
Release files for cityhall 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cityhall-0.0.3.tar.gz | 6.4 kB | Details |
Release files / cityhall-0.0.3.tar.gz
| Download URL | cityhall-0.0.3.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09d5988ce41a901cdb86e416b682f0b2270c8e29cd316e5a9f3224d4f16bfa8a
|
|
BLAKE2b-256 checksum How to use checksums |
480ae9725aa4126098a49a4fd66116708e59bd7098dba63c9d230a93c33af503
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |