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.openapi_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.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file py_openapi_apollo_client-1.0.0.tar.gz.

File metadata

  • Download URL: py_openapi_apollo_client-1.0.0.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

Hashes for py_openapi_apollo_client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b48182ab2e54d44d4903a6f0d676c11b684875dd4afeda694d8957c87599cfac
MD5 eb13d48c8bb1040e19b253e3105fdcc9
BLAKE2b-256 8458c7dfc066e563e7cc3c350dfd63970135b55a5ad5e1ecbbdea4d7ad8e07bc

See more details on using hashes here.

File details

Details for the file py_openapi_apollo_client-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: py_openapi_apollo_client-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 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

Hashes for py_openapi_apollo_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c891e47dd3e6f9256bdaae4f693f978161fa6a2c7fc1a29d2b111f0bf9841cd2
MD5 7b9411ffae6ed44309ff79add8f11daa
BLAKE2b-256 87f5d6f591d3a24a5db283a189b0f197ce3a4500718e3ff23b110eb0830a5ce5

See more details on using hashes here.

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