python-apollo-client
Python连接 Apollo配置中心
基于 https://github.com/BruceWW/pyapollo 修改
站在巨人的肩膀上
感谢原作者
工程主页
https://pypi.org/project/python-apollo-client/
https://github.com/yjlch1016/python-apollo-client
安装
pip install python-apollo-client
用法
- 启动客户端长连接监听
client = ApolloClient(username=<username>, password=<password>, app_id=<appId>, cluster=<clusterName>, config_server_url=<configServerUrl>)
client.start()
- 获取Apollo的配置
client.get_value(Key, DefaultValue)
参考
https://github.com/ctripcorp/apollo
https://github.com/filamoon/pyapollo
https://github.com/BruceWW/pyapollo
Release files for python-apollo-client 0.0.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 | |
|---|---|---|---|
| python-apollo-client-0.0.2.tar.gz | 4.8 kB | Details |
Release files / python-apollo-client-0.0.2.tar.gz
| Download URL | python-apollo-client-0.0.2.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b7644c7421446719d229f57c99f11fb625b79c41af41a4f904f89675ba0dc7c
|
|
BLAKE2b-256 checksum How to use checksums |
7c23ac8bc1bbe40a7031396fac9c3f2d0c5c1401e23518a44db718143ae5de0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.8
|