Skip to main content

python-apollo客户端封装

Project description

py_openapi_apollo_client

python-apollo客户端封装

支持的python版本

python3.x

功能点

  1. 获取apollo中指定namespaceName下的配置数据
  2. 修改apollo中指定namespaceName下的配置数据

说明

支持鉴权token的传入

安装

pip install py-openapi-apollo-client

二次开发

继承PrivateApolloClient类后,增加自己的方法即可

官方接口文档

Apollo开放平台

使用

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_openapi_apollo_client-1.0.1.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

py_openapi_apollo_client-1.0.1-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page