Skip to main content

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

cityhall-0.0.5.tar.gz (6.4 kB view details)

Uploaded Source

File details

Details for the file cityhall-0.0.5.tar.gz.

File metadata

  • Download URL: cityhall-0.0.5.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cityhall-0.0.5.tar.gz
Algorithm Hash digest
SHA256 ffed4d7c7c7f8677c011840f3d730ae5944aa6be667dd26e69b852f0d6b5a5c8
MD5 3a3d41985d1dea709503a67485a75fdd
BLAKE2b-256 b0cb5c90c86bc261542b1c058e39b6e896bac17ccedc422d34c98f60810529ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page