python rest客户机与模式注册中心合流服务器交互以管理avro模式

python-schema-registry-client的Python项目详细描述


#python rest客户端模式注册表

[![生成状态](https://travis-ci.org/marcosschroh/python-schema-registry-client.svg?branch=master)](https://travis-ci.org/marcosschroh/python-schema-registry-client) [![github许可证](https://img.shields.io/github/license/marcosschroh/python-schema-registry-client.svg)](https://github.com/marcosschroh/python-schema-registry-client/blob/master/LICENSE) [![codecov](https://codecov.io/gh/marcosschroh/python-schema-registry-client/branch/master/graph/badge.svg)](https://codecov.io/gh/marcosschroh/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,请求>;=2.22.0

##安装

` pip install python-schema-registry-client ` 如果您想要《浮士德》的功能:

` pip install python-schema-registry-client[faust] `

##客户机API、序列化程序、Faust集成和架构服务器描述

文档:[https://marcosschroh.github.io/python-schema-registry-client.io](https://marcosschroh.github.io/python-schema-registry-client

##什么时候用这个图书馆?

通常,我们有这样的情景:

啊![合流架构](docs/img/confluent_architecture.png)

因此,我们的生产者/消费者每次从kafka主题发送/接收消息时都必须序列化/反序列化消息。在这张图片中,我们可以想象一个faust应用程序接收消息(用avro模式编码),我们想要对它们进行反序列化,因此我们可以要求模式服务器为我们这样做。在这种情况下,消息序列化程序是完美的。

另外,可能是我们希望应用程序只管理avro模式(注册、更新兼容性、删除旧模式等)的用例,因此schemaregistryclient是完美的。

##运行测试

测试使用docker compose在模式服务器上运行,因此您需要 dockerdocker compose已安装。

`bash ./scripts/test.sh `

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java使用唯一的按钮标签单击按钮   代码生成如何使用Java codeModel为数组的特定索引赋值   java如何批量执行Camel SQL插入   java iText 7将ltv添加到现有签名   内存管理Java应用程序突然停止几天后(810)   带MySQL的java注册表单JavaFX在intellij中失败   如何使用eclipse为windows azure java项目启用远程调试   一种通用的java输入输出设计模式   java Android XML(RSS)忽略引号(“”)   java帮助:安卓中的8 X 10 2维按钮数组   java启动Android项目   JWrapper构建java应用程序   java如何在Android应用程序中设置基于日期/时间的默认页面加载?   java循环程序在完成后返回到起点   java Hibernate:更好的整体类还是多类映射?   回溯数独解算器的递归问题[Java]   java查找类用法   java如何在SpringWebFlow中将多个模型绑定到一个视图?