Get configurable values from ETCD
Project description
cashify-python-etcd
Cashify Python Repo to get Key values from ETCD.
Pre-requisite:
- python-etcd library (https://pypi.org/project/python-etcd/)
How to use:
- Use steps under if want to use directly from source code
- Install library using pip install git+https://git@github.com/saket-cashify/cashify-python-etcd.git
- Import cashifypythonetcd and init class with parameters "host, protocol, port, app_name"
- Use function "get_property_value" with parameters "key, default" with class instance to get value from ETCD
- If key is not defined in ETCD, we will get the default value back
- add this line to requirements file to install "-e git+https://git@github.com/saket-cashify/cashify-python-etcd.git#egg=cashifypythonetcd" automatically
- Use these steps to use from PyPi
- pip install cashifypythonetcd
- Import cashifypythonetcd and init class with parameters "host, protocol, port, app_name"
- Use function "get_property_value" with parameters "key, default" with class instance to get value from ETCD
- If key is not defined in ETCD, we will get the default value back
- add cashifypythonetcd==0.0.1 to requirements
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
File details
Details for the file cashifypythonetcd-0.0.3.tar.gz
.
File metadata
- Download URL: cashifypythonetcd-0.0.3.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3391abbed55f03ba27c781d3e06c28c59a7118ab9e6c8384a2a641e92ae82dee |
|
MD5 | 4ac57bd194291a2a18af0545d55e3fe6 |
|
BLAKE2b-256 | 9557bcc5764398a6ff7b00688cd7de8486e9c3736b268df22f18a557bbf610cc |