Skip to main content

a client for apollo - fix

Project description

apollo-client - Python Client for Ctrip's Apollo

License

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

基于https://github.com/BruceWW/pyapollo, 修复Apollo 1.6.0 之后带来的密钥问题; 同时会提交给BruceWW进行修改

Installation

pip install apollo-client-py

Features

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

Usage

  • 启动客户端长连接监听
from pyapollo import ApolloClient

client = ApolloClient(app_id=<appId>, cluster=<clusterName>, config_server_url=<configServerUrl>, secret=<AppSecretKey>)
client.start()
  • 获取Apollo的配置
    client.get_value(Key, DefaultValue)
    

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 修复文件名称读取异常
30/5/2020 xhrg 0.1.0 修复密钥问题
30/5/2020 xhrg 0.1.1 获取所有的keys

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

apollo-client-py-0.1.1.tar.gz (6.1 kB view details)

Uploaded Source

File details

Details for the file apollo-client-py-0.1.1.tar.gz.

File metadata

  • Download URL: apollo-client-py-0.1.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.1

File hashes

Hashes for apollo-client-py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4524e05133e0456be4e91983271e2814de0ed53b7ffb1b9234ab18cedd694fb5
MD5 8c2936fd66b783b7a0f917202a964c6c
BLAKE2b-256 3a7df29918307a6e870559f07c97f7eb3a7c0ffff9e2286fabd75e8282a7765f

See more details on using hashes here.

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