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

Uploaded Python 3

File details

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

File metadata

  • Download URL: strengthen-apollo-client-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 1284cb0edab8736f6297ac99a47dd84970f38af42f188251abb76bf1d7eecfd6
MD5 1a7b7bc9b66f4ac1ea3f009b99be2476
BLAKE2b-256 41f403c766e2d81f0f79d7a313c0f4b7ac1cb00f9fa2996cf61b4a7375187dcc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: strengthen_apollo_client-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 88ca71de829bd4dce2869affaa01dac2e51818835dccccea9aa621386422fc3f
MD5 4328423ead442fdab99e2133eccd4f0a
BLAKE2b-256 3f3a09da395ddc65f79aea419ff76ab66c9b1cc23e95495fddf6063e57b68944

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