a client for apollo
Project description
apollo-client - Python Client for Ctrip's Apollo
方便Python接入配置中心框架 Apollo 所开发的Python版本客户端。 Tested with python 3
基于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)
Contribution
- Source Code: https://github.com/BruceWW/pyapollo
- Issue Tracker: https://github.com/BruceWW/pyapollo/issues
- Original Source Code: https://github.com/filamoon/pyapollo
License
The project is licensed under the Apache 2 license.
Reference
Apollo : https://github.com/ctripcorp/apollo
Contributor
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 修复文件名称读取异常
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 Distribution
apollo-client-0.9.1.tar.gz
(5.1 kB
view details)
File details
Details for the file apollo-client-0.9.1.tar.gz
.
File metadata
- Download URL: apollo-client-0.9.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 675cd64ffdac44676058ee47c58408515f14158b2a8c496f732bb17f74a5510f |
|
MD5 | d091fd9a7cbeb85f57a3fe5ab7820397 |
|
BLAKE2b-256 | 8825eac46bfe6872ac525bff9a90fa987788c2d1c653762d8065365ae763b509 |