Skip to main content

a client for apollo 2.0, it's been reformatted!

Project description

ke-apollo-client forke自apollo-client,变更内容包括:

  • 修改部分接口url,适配贝壳apollo server
  • 修改api返回结果解析,适配贝壳apollo server

apollo-client - Python Client for Ctrip's Apollo

License

方便Python接入配置中心框架 Apollo 所开发的Python版本客户端。 Tested with python 3.5+

基于https://github.com/filamoon/pyapollo/ 修改

Installation

pip install apollo-client

Features

  • 实时同步配置
  • 灰度配置
  • 客户端容灾

Usage

  • 启动客户端长连接监听
client = ApolloClient(app_id=<appId>, cluster=<clusterName>, config_server_url=<configServerUrl>)
client.start()
  • 获取Apollo的配置
    client.get_value(Key, DefaultValue, namespace)
    

Contribution

License

The project is licensed under the Apache 2 license.

Reference

Apollo : https://github.com/ctripcorp/apollo

Contributor

Bruce
prchen
xhrg

Version log

11/24/2019 Bruce 0.8.2 优化本地缓存的存储方式
1/4/2020 Bruce 0.8.4 修复文件读取异常的bug
3/24/2020 prchen 0.8.5 修复安装过程中requests模块依赖的问题
7/5/2020 Bruce 0.9 主线程退出时,关闭获取配置的子线程
25/5/2020 xhrg 0.9.1 修复文件名称读取异常
13/7/2020 Bruce 0.9.2 【bugfix】修复当namespace不存在时,服务器挂起导致get_value无响应
18/10/2020 Bruce 2.0 重构 | 优化数据获取方式 | 优化定时任务 | 新增authorization传入

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ke-apollo-client-2.1.2.3.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

ke_apollo_client-2.1.2.3-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file ke-apollo-client-2.1.2.3.tar.gz.

File metadata

  • Download URL: ke-apollo-client-2.1.2.3.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.9

File hashes

Hashes for ke-apollo-client-2.1.2.3.tar.gz
Algorithm Hash digest
SHA256 38f3bc3e73dd27bd5be16305aea035a3a06e4035bedfca60dd33ece680928d96
MD5 5e0ae827c32e5648636200a2ad56776d
BLAKE2b-256 3dc8a367b308e7a5b9017286be657f5c9def76f1017e8157c3fa607572c53f09

See more details on using hashes here.

File details

Details for the file ke_apollo_client-2.1.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ke_apollo_client-2.1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6ce598ae36d505e962db7365568f02c70fc83d737bcdc4c12e935819a7a46815
MD5 cef1f4b2e0623279cfd8bb4161051e3c
BLAKE2b-256 4c35ace669a5020082eacfdfe5daaa660e57eacdb42a0cfa6c8cbb349a099de4

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