a python client for apollo
Project description
python-apollo-client
Python连接 Apollo配置中心
基于 https://github.com/BruceWW/pyapollo 修改
站在巨人的肩膀上
感谢原作者
工程主页
https://pypi.org/project/python-apollo-client/
https://github.com/yjlch1016/python-apollo-client
安装
pip install python-apollo-client
用法
- 启动客户端长连接监听
client = ApolloClient(username=<username>, password=<password>, app_id=<appId>, cluster=<clusterName>, config_server_url=<configServerUrl>)
client.start()
- 获取Apollo的配置
client.get_value(Key, DefaultValue)
参考
https://github.com/ctripcorp/apollo
https://github.com/filamoon/pyapollo
https://github.com/BruceWW/pyapollo
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 python-apollo-client-0.0.2.tar.gz
.
File metadata
- Download URL: python-apollo-client-0.0.2.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b7644c7421446719d229f57c99f11fb625b79c41af41a4f904f89675ba0dc7c |
|
MD5 | 147fdbc8d20ab25961c558c6defa338f |
|
BLAKE2b-256 | 7c23ac8bc1bbe40a7031396fac9c3f2d0c5c1401e23518a44db718143ae5de0a |