apollo-client - Python Client for Ctrip's Apollo
方便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
- 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 修复文件名称读取异常
13/7/2020 Bruce 0.9.2 【bugfix】修复当namespace不存在时,服务器挂起导致get_value无响应
18/10/2020 Bruce 2.0 重构 | 优化数据获取方式 | 优化定时任务 | 新增authorization传入
Metadata
Release files for apollo-client 2.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| apollo-client-2.1.2.tar.gz | 6.3 kB | Without provenance | Details |
Release files / apollo-client-2.1.2.tar.gz
| Download URL | apollo-client-2.1.2.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41db031d95a600b190ad4141049ab1d02309121c888a19fb3089b97663c40fb5
|
|
BLAKE2b-256 checksum How to use checksums |
2cf3cf0c7fca5988b361a19aa62aad21bc9bf4e6ac4e306f79ce27d305620dfe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5
|
Security for apollo-client 2.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.