python-apollo客户端封装
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'))