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
````
[![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
````