Skip to main content

Python Client for Ctrip's Apollo Configuration Center

Project description

apollo-client-python - Python Client for Ctrip's Apollo

License

方便Python接入配置中心框架 Apollo 所开发的Python版本客户端。

基于 xhrg-product/apollo-client-python 修改

  • Python3.x
  • Apollo配置中心拉取配置
  • 支持回调
  • secret认证
  • 本地文件缓存
  • 热更新,通过参数配置
  • add dotenv

增加从环境变量读取基础配置:

# Apollo 必需配置

APOLLO_META_SERVER_ADDRESS=http://localhost:8080 APOLLO_APP_ID=your-app-id

# 认证配置

APOLLO_APP_SECRET=your-app-secret

# 可选配置

APOLLO_CLUSTER=default APOLLO_NAMESPACES=application

Installation

pip install apollo-client-python

Quick Start

from apollo import ApolloClient

client = ApolloClient(...)

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

apollo_client_python-0.2.5.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apollo_client_python-0.2.5-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file apollo_client_python-0.2.5.tar.gz.

File metadata

  • Download URL: apollo_client_python-0.2.5.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for apollo_client_python-0.2.5.tar.gz
Algorithm Hash digest
SHA256 cae32e57f692cd4e2309555a8a19a0af05fb30d0e9c7fca69b76291e7c26f555
MD5 72ac7c61607182f7cfa36ac83289ef9a
BLAKE2b-256 d339f9db1dc3045a1b33ac78ea737ead7133996b32b5555d8f11ada543f123cf

See more details on using hashes here.

File details

Details for the file apollo_client_python-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: apollo_client_python-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for apollo_client_python-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 746bfae1b5f46995d181e000f03bd0a55f7c67f4174d5d602495529386d5a29f
MD5 f571f5907fd14072ba513d109878ceec
BLAKE2b-256 7955c6a343eeeb34986f8730786923e12440acd078c826126b9b0c4fac8ff43b

See more details on using hashes here.

Supported by

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