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
Close
Hashes for python-apollo-client-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b7644c7421446719d229f57c99f11fb625b79c41af41a4f904f89675ba0dc7c |
|
MD5 | 147fdbc8d20ab25961c558c6defa338f |
|
BLAKE2b-256 | 7c23ac8bc1bbe40a7031396fac9c3f2d0c5c1401e23518a44db718143ae5de0a |