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.3.tar.gz (9.9 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.3-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: strengthen-apollo-client-1.0.3.tar.gz
  • Upload date:
  • Size: 9.9 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.3.tar.gz
Algorithm Hash digest
SHA256 6c8ece8e1b31a3efb39f3e3559e87fcb04066677d03a1056eb340d4ef3301199
MD5 3ba4373cf247a5ec34f59106df9a9d70
BLAKE2b-256 7b3fce78321ea54931a3660c764cfa9d94e362cb896927ace3dfcd6ad877352e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: strengthen_apollo_client-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 12.5 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2ce4be5bd55510228859172724976ddfb6f77e85c7312ce328e519a354d168dd
MD5 0c367dd3a45fdb1b71700a57ba1f8e50
BLAKE2b-256 4fa3900881371bc9426c748be5e8b6120bf84fb540c7df53cf20a766be8e00dd

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