python-apollo客户端封装
Project description
py_openapi_apollo_client
python-apollo客户端封装
支持的python版本
python3.x
功能点
- 获取apollo中指定namespaceName下的配置数据
- 修改apollo中指定namespaceName下的配置数据
说明
支持鉴权token的传入
安装
pip install py-openapi-apollo-client
二次开发
继承PrivateApolloClient类后,增加自己的方法即可
官方接口文档
使用
from py_openapi_apollo_client.apollo_client import PrivateApolloClient
client = PrivateApolloClient(app_id='test', portal_address='http://test.com', authorization='xxx')
print(client.get_namespace_items_key(key='test.switch'))
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
Built Distribution
File details
Details for the file py_openapi_apollo_client-1.0.1.tar.gz
.
File metadata
- Download URL: py_openapi_apollo_client-1.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50ace62819edee10e6fdaad8dc7a27764f383b0014fe681e943bce8fe37a7793 |
|
MD5 | fdf99491267045656626ecbda3277974 |
|
BLAKE2b-256 | c08221d8c0bdd069c3ca62ceffccb88726b1f585a6aab3abe843d38156e19711 |
File details
Details for the file py_openapi_apollo_client-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: py_openapi_apollo_client-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f35de894a425a273502a2946a0eab7e759f106936f0e3e9ae2f1fac1f2489fbd |
|
MD5 | b2e4e913110ca0a23e71dd52e1328808 |
|
BLAKE2b-256 | f1eb6fc7402ecf2abf467350be71502e20ad88be15b93be9b0b006ebe4e47d3d |