datamountainer python 3合流模式注册表客户端

datamountaineer-schemaregistr的Python项目详细描述


[![构建状态](https://travis-ci.org/datamountaineer/python-serializers.svg?branch=master)(https://travis ci.org/datamountaineer/python序列化程序)
[![pypi](http s://img.shields.io/badge/pypi-0.3-blue.svg)](https://pypi.python.org/pypi/datamountaineer schema registry/0.3)


支持Python3.5。这也在虚拟的Env.BR/> BR/>中工作。API是基于[合并的模式注册表]的现有Java API(HTTPS://GITHUB.COM/CONFUNTICON/Schema注册表)。BR/> BR/>序列化器/反序列化器使用[FASTAVR](http://GITHUBCOM/TEBEKA/FASTAVRO)进行默认读写。` fast avro,可以通过向“MessageSerializer”构造函数提供“fast_avro=false”来禁用它,而将使用apache avro的“avro”包。

用法

setup

```python
from datamountaineer.schemaregistry.client import schemaregistryclient
from datamountaineer.schemaregistry.serializers import messageserializer,util

avro_schema)

avro_schema)

按ID编码是最有效的,因为它避免了到架构注册表的额外访问以查找架构ID。

``python
直接< BR/>编码=序列化器。avro_schema,record)
```

>读取消息

``python
从pr 4


\testing

`````
pip3安装py test mock
py.test-s-rxs-v
````



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

推荐PyPI第三方库


热门话题
jsoup有效文件路径抛出java。木卫一。FileNotFoundException   java如何在不删除和添加Mapbox中的层的情况下更改SymbolLayer的Z值?   java计算用户定义年数内四个季度的降雨量   如何在Java中轻松地将格式为“20 0F 01”的字符串更改为十六进制值?   java在JPA或Hibernate中“持久类”和“实体”之间有什么区别?   java Android:AlarmManager“缺少对unregisterReceiver()的调用?”当按下后退按钮时   logcat中的java错误“isDataSchedulerEnabled():false”   java i/p col特性必须是字符串或数字类型,但不能是org。阿帕奇。火花利纳格小姐。向量   java如何从Post请求url和浏览器转储中隐藏密码   多线程javamail中的java问题   java我的用户应该直接连接到数据库吗?如何将用户连接到数据库;   java如何获得Spring数据JPA存储库工厂?   windows java字节数组转换为字符串,但不同的操作系统会产生不同的结果   java代码在eclipse中编译,但不在命令行上编译