Skip to main content

bp-apollo-client

Project description

PyApollo - Python Client for Ctrip's Apollo

License

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


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

bp_apollo_client-0.0.5-py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page