Giter Site home page Giter Site logo

apollo-client-python's Introduction

apollo-client-python

入门使用:

  • 见demo目录

功能点:

  • apollo配置中心拉取配置
  • 支持回调接口
  • secret认证
  • 支持灰度发布
  • 支持本地文件缓存
  • 默认开启热更新,参数配置可以不开启热更新
  • 同时支持python2.x和python3.x,详情见./apollo/下的python_2x.py和python_3x.py文件

注意点:

代码更新

  • 修改实例化方法ApolloClient,在内部默认启动异步热更新线程,可以通过参数配置不开启热更新。(2020.09.15)
  • 修复停机阻塞问题。
  • 增加回调接口,增加secret认证,增加demo
  • 修改获取配置的接口改为不带缓存的接口。如果使用缓存接口,config有多个节点的时候,可能A通知更新,但是B的缓存没有更新到。
  • 增加心跳机制。增加心跳机制,如果不增加心跳机制,apollo的ui界面可能看不到实例。
  • 2021-03-23 修复创建文件夹异常,1.py2并发创建文件夹会抛出异常

apollo-client-python's People

Contributors

chenxing1020 avatar xhrg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

apollo-client-python's Issues

401错误

当config_url 为 https://dev.apollo.com/config-dev 时, get_value会报401.

给header增加加签需求

def _signHeaders(self, url):
    headers = {}
    if self.secret == '':
        return headers
    # 不合理处
    uri = url[len(self.config_url):len(url)]
    time_unix_now = str(int(round(time.time() * 1000)))
    headers['Authorization'] = 'Apollo ' + self.app_id + ':' + signature(time_unix_now, uri, self.secret)
    headers['Timestamp'] = time_unix_now
    return headers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.