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.2.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.2-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: strengthen-apollo-client-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 e84dbf924bbf1991fb9d26e32fae24136fd1f48aa3d5858ac9875149cf6c278d
MD5 5369c6b69f295fddc546bcbce73131e9
BLAKE2b-256 e894643968d753ae4e92ac61ce0f0a0fd59cf6a368a28b9aa50eb3f813dd4d03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: strengthen_apollo_client-1.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-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 942d884e22375b413cefc6b2054f28d3f6269fb17d2ae88d94890f15704657ba
MD5 8f1cbbd9e971774e479969cda6ad3149
BLAKE2b-256 9de56f1143e3d1b9c2c735ffc47d76b4ac936c51acbfc115905765086a2cea78

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