Metadata-Version: 2.1
Name: strengthen-apollo-client
Version: 1.0.1
Summary: Python version client based on Apollo
Home-page: https://github.com/Darr-en1/pyapollo
Author: darr_en1
Author-email: zhouttt1995@gmail.com
License: UNKNOWN
Platform: any
Classifier: Programming Language :: Python :: 3.6
Description-Content-Type: text/markdown
License-File: LICENSE

PyApollo - Python Client for Ctrip's Apollo
================

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

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

# Architecture

![架构图](structure.png)



# Installation
``` shell
pip install strengthen_apollo_client
```

# Fix Bug

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

# Features

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


# Usage

- 启动客户端长连接监听

``` python
from pyapollo.strengthen_apollo_client import StrengthenApolloClient
client = StrengthenApolloClient(app_id=<appId>, cluster=<clusterName>, config_server_url=<configServerUrl>)
client.start()
```

- 获取Apollo的配置
  
```python
client.get_value(Key, DefaultValue)
```


