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,yaml,json,json,xml格式

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-0.0.2.tar.gz (8.7 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-0.0.2-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: strengthen-apollo-client-0.0.2.tar.gz
  • Upload date:
  • Size: 8.7 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-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7f40bc9aa8d83b9df830792e55be1422c49bfb5fe31a7c82be75c84ecc5f0fd1
MD5 81c6ba184c211a0550fa41d32d60081c
BLAKE2b-256 eee74155ff3b1fff91e298a3da2cd9b9cb6e13086bf4011c4e5522bc5e7926a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: strengthen_apollo_client-0.0.2-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-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b3ddade795af7c1697ab2ff7027cebdc07dd9328fb1d09e9c4cfdd00e3f852de
MD5 a0c07a476968510cef482dec4a4d6578
BLAKE2b-256 f9dd884450d1ee63b841374a252374f54ed9b05f9650b29d8f3303edd347c78a

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