A Python SDK that is easy to integrate with the Apollo configuration management system.
Project description
A Python SDK that is easy to integrate with the Apollo configuration management syste.
A Python package for apollo.
GitHub repo: https://github.com/gcj-bit/ApolloPyClient
Free software: MIT license
Installation
pip install ApolloPyClient
Usage
client = ApolloClient(
app_id=os.environ.get('APOLLO_APP_ID'),
config_service_url=os.environ.get('APOLLO_CONFIG_URL'),
cluster=os.environ.get('APOLLO_CLUSTER'),
secret=os.environ.get('APOLLO_SECRET'),
env=os.environ.get('APOLLO_ENV'),
namespaces=['application', 'test', 'testjson.json', 'testyaml.yaml'],
ignore_ssl_verify=True,
)
print(client.all())
# sleep for 100000 seconds, you can view log to get the config
time.sleep(100000)
Reference
Apollo : https://www.apolloconfig.com/#/en/client/other-language-client-user-guide
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file apollopyclient-0.1.1.tar.gz.
File metadata
- Download URL: apollopyclient-0.1.1.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00c2418e7b710826c9b96efbb88c3623569e9294c167c0d28bdd9556535dc96a
|
|
| MD5 |
a48d4c6de09a1755a2cc0d14b14d30e7
|
|
| BLAKE2b-256 |
153044346651be08137137bdc92918d6ee986538946786279a284a50bbc30632
|
File details
Details for the file ApolloPyClient-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ApolloPyClient-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31c908165129d36b8cc9d14cf1ec2913561dd933c35e24b60cf0566d0f8837bf
|
|
| MD5 |
d39ed5e612de3cb0038fa3c815769a54
|
|
| BLAKE2b-256 |
197addbdd1d468848d317e0f2efa35620f38582475891fef09265f99569f3342
|