Skip to main content

Python version client based on Apollo

Project description

PyApollo - Python Client for Ctrip's Apollo

License

基于Apollo配置中心框架 Apollo 所开发的Python版本客户端。基于https://github.com/filamoon/pyapollo/ 修改,修复一些bug, 添加了新特效。

Architecture

架构图

Installation

pip install strengthen_apollo_client

Fix Bug

  • properties文件缓存失效问题
  • 后台进程timeout shutdown问题

Features

  • 实时同步配置
  • 本地缓存
  • 支持properties,xml,json,yml,yaml格式

Usage

  • 启动客户端长连接监听
from pyapollo.strengthen_apollo_client import StrengthenApolloClient
client = StrengthenApolloClient(app_id=<appId>, cluster=<clusterName>, config_server_url=<configServerUrl>)
client.start()
  • 获取Apollo的配置
client.get_value(Key, DefaultValue)

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

strengthen-apollo-client-1.0.1.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

strengthen_apollo_client-1.0.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file strengthen-apollo-client-1.0.1.tar.gz.

File metadata

  • Download URL: strengthen-apollo-client-1.0.1.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.13

File hashes

Hashes for strengthen-apollo-client-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e51ff0d559f082c89882a3deda7a036febd89333bc17c06edec8c9b3538e2dae
MD5 2dbd78d5004460c43b4b8b4bdb09bb8b
BLAKE2b-256 06d0f4634d88a62933165a615537dd05d32637288a2eb7128983e3f60b60ffd0

See more details on using hashes here.

File details

Details for the file strengthen_apollo_client-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: strengthen_apollo_client-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.13

File hashes

Hashes for strengthen_apollo_client-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4e2af762089120e55a3065e4af4552d4dee9c2f2b8d0bfb3e67e6f61b32fa4db
MD5 606e78924359cca2571811a5aaea1463
BLAKE2b-256 233c27fedab38acc0f041860a7b186526852842bf30a080ab9473341b34ab90b

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