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

If you're not sure about the file name format, learn more about wheel file names.

bp_apollo_client-0.0.6-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file bp_apollo_client-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: bp_apollo_client-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11

File hashes

Hashes for bp_apollo_client-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 eda07c98d8926901703831d3f702f42cc89b49133cfc1a9dccf355bff190a539
MD5 b5fede41be77b0973039872a3242eab9
BLAKE2b-256 c4fc4ae0e63c4089296f049399f282a9fd924276a02a35fa511d6f514b6afc9a

See more details on using hashes here.

Supported by

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