apollo-client-python
入门使用:
- 见demo目录
功能点:
- apollo配置中心拉取配置
- 支持回调接口
- secret认证
- 支持灰度发布
- 支持本地文件缓存
- 默认开启热更新,参数配置可以不开启热更新
- 同时支持python2.x和python3.x,详情见./apollo/下的python_2x.py和python_3x.py文件
注意点:
- 【已经废弃,换为不带缓存接口,原因见代码更新】本项目获取配置使用的是缓存接口,而非实时拉取数据库接口,详情见:https://github.com/ctripcorp/apollo/wiki/%E5%85%B6%E5%AE%83%E8%AF%AD%E8%A8%80%E5%AE%A2%E6%88%B7%E7%AB%AF%E6%8E%A5%E5%85%A5%E6%8C%87%E5%8D%97
代码更新
- 修改实例化方法ApolloClient,在内部默认启动异步热更新线程,可以通过参数配置不开启热更新。(2020.09.15)
- 修复停机阻塞问题。
- 增加回调接口,增加secret认证,增加demo
- 修改获取配置的接口改为不带缓存的接口。如果使用缓存接口,config有多个节点的时候,可能A通知更新,但是B的缓存没有更新到。
- 增加心跳机制。增加心跳机制,如果不增加心跳机制,apollo的ui界面可能看不到实例。
- 2021-03-23 修复创建文件夹异常,1.py2并发创建文件夹会抛出异常
Metadata
Release files for xx-apollo 2023.7.14.17.23.16
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 | Actions |
|---|---|---|---|---|
| xx-apollo-2023.7.14.17.23.16.tar.gz | 8.9 kB | Without provenance | Details for xx-apollo-2023.7.14.17.23.16.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xx_apollo-2023.7.14.17.23.16-py3-none-any.whl | Python 3 | none | any | Details for xx_apollo-2023.7.14.17.23.16-py3-none-any.whl |
Total release size: 16.6 kB
Release files / xx-apollo-2023.7.14.17.23.16.tar.gz
| Download URL | xx-apollo-2023.7.14.17.23.16.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c04e1e61cb1816b1d22c1143275331f8645095140edcca4041048a92399a4450
|
|
BLAKE2b-256 checksum How to use checksums |
22006e3bb7235c10b1d077cbaec291732424e97d936399436b9890cb25cd050d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.13
|
Release files / xx_apollo-2023.7.14.17.23.16-py3-none-any.whl
| Download URL | xx_apollo-2023.7.14.17.23.16-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a5856e1a0e5e8cf5a456155c60c9735370990c8050b25f2be7de05cbfde1f9e
|
|
BLAKE2b-256 checksum How to use checksums |
4e4faf79598be5ec4470f830bc70a1bd4cc94f5b11f2af5d3f2cc073706b8cb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.13
|
Security for xx-apollo 2023.7.14.17.23.16
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.