bp-apollo-client
Project description
PyApollo - Python Client for Ctrip's Apollo
Easy python client to use Apollo。 Tested with python 3.7
Installation
- 启动客户端长连接监听
from bp_apollo_client.apollo_client import ApolloClient, ApolloData
client = ApolloClient(app_id=<appId>, cluster=<clusterName>, config_server_url=<configServerUrl>)
client.client.add_callback_funcs(<cb_funs>) # add callback fun for get apollo push config when changed
client.start()
- get apollo config data
client.get_value(Key, DefaultValue) # or ApolloData.get(Key, DefaultValue)
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for bp_apollo_client-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e2805fafd5ff3dd23291c9e1f268b08c3428234e7e47872582c499173fdfa69 |
|
MD5 | d26fba8b271e3db827aee9f9cbde5718 |
|
BLAKE2b-256 | 056f5af74201fecad8906b1151e68fc4060194e0f2cf83c4342b0beccf432699 |