a python client for apollo
Project description
python-apollo-client
Python连接 Apollo配置中心
站在巨人的肩膀上
基于https://github.com/BruceWW/pyapollo修改
感谢原作者
安装
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e53a08e017c7c4284f33526deb23f529e67344d5b24f83fd35eb2d9cab1873f |
|
MD5 | 53598d1da9b7f4661d107057f4b80cbf |
|
BLAKE2b-256 | b4f215e1709b64c7150319e43ec87f4333978d68c2887c24cdfd7842eec3d25d |