CCentral client library
Project description
python-ccentral
Python client for CCentral configuration management. Client communicates directly with etcd.
WebUI for configuration management and monitoring metrics can be found from https://github.com/slvwolf/ccentral.
Example Usage
import ccentral
cc = ccentral.CCentral("my_service", "etcd-host:1234")
cc.add_field("config_a", "Dynamic configuration", default="test", description="Configuration string")
# Read configuration
print(cc.get("config_a"))
# Increment counters
cc.inc_instance_counter("run")
# Set text info
cc.add_instance_info("version", "1.2")
# Set text info (common in cluster)
cc.add_service_info("shared_key", "shared_value")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ccentral-0.4.1.tar.gz
(5.9 kB
view details)
Built Distribution
File details
Details for the file ccentral-0.4.1.tar.gz
.
File metadata
- Download URL: ccentral-0.4.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.21.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 669b4993089cfede93fa43f0f525bd28a7a6180c9ea7278bf041ff473d18b0b1 |
|
MD5 | 5497f191bd54cdaf12e49c5f8e8f9186 |
|
BLAKE2b-256 | d357797be5170e393199a23b5b217539ac2759a1496cabb5216b66a17f20e0a3 |
File details
Details for the file ccentral-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: ccentral-0.4.1-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.21.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ade73481983df3472fcb16ce301f27b4d89a75a7a676864190efc442b5a72c8 |
|
MD5 | f8ea7537595d0da1869e6109e51cc0d6 |
|
BLAKE2b-256 | e9d4f77c74e7f0d756c5c5da025aec00c79441c17603b46c4caff0ca07202a11 |