asyn python rest客户端与模式注册中心合流服务器交互以管理avro模式
async-python-schema-registry-client的Python项目详细描述
#异步python rest客户端架构注册表
[![生成状态](https://travis-ci.org/marcosschroh/async-python-schema-registry-client.svg?branch=master)](https://travis-ci.com/marcosschroh/async-python-schema-registry-client.svg?分支=主) [![github许可证](https://img.shields.io/github/license/marcosschroh/async-python-schema-registry-client.svg)](https://github.com/marcosschroh/async-python-schema-registry-client/blob/master/LICENSE) [![codecov](https://codecov.io/gh/marcosschroh/async-python-schema-registry-client/branch/master/graph/badge.svg)](https://codecov.io/gh/marcosschroh/async-python-schema-registry-client) [![python版本](https://img.shields.io/badge/python-3.6%20%7C%203.7-blue.svg)](https://img.shields.io/badge/python-3.6%20%7C%203.7-blue.svg)
异步python rest客户机与[schema registry](https://docs.confluent.io/current/schema-registry/index.html)合流服务器交互以管理[avro schemas](https://docs.oracle.com/database/nosql-12.1.3.1/GettingStartedGuide/avroschemas.html)资源。
##要求
python 3.6+,fastavro>;=0.22.3,请求异步>;=0.4.1,aiofiles>;=0.4.0
##安装
` pip install async-python-schema-registry-client `
##客户机API、序列化程序、Faust集成和架构服务器描述
##什么时候用这个图书馆?
通常,我们有这样的情景:
啊![合流架构](docs/img/confluent_architecture.png)
因此,我们的生产者/消费者每次从kafka主题发送/接收消息时都必须序列化/反序列化消息。在这张图片中,我们可以想象一个faust应用程序接收消息(用avro模式编码),我们想要对它们进行反序列化,因此我们可以要求模式服务器为我们这样做。在这种情况下,消息序列化程序是完美的。
另外,可能是我们希望应用程序只管理avro模式(注册、更新兼容性、删除旧模式等)的用例,因此schemaregistryclient是完美的。
##运行测试
测试使用docker compose在模式服务器上运行,因此您需要 docker和docker compose已安装。
`bash ./scripts/test.sh `