avro-c的python扩展包装器
lancaster的Python项目详细描述
lancaster
==
[avro-c][avro-c]的python扩展包装器。
当前仅支持读取avro序列化数据流。
不支持写入,也不支持avro容器格式。有关兰开斯特愿意阅读的内容的更多详细信息,请参见
[兰开斯特规范](docs/spec.md)。
另请参见[avro项目页][avro]。
}'
以open('data.avro','rb')作为f:
data=list(lancaster.read_stream(schema,f))
`lancaster.read_stream()`接受一个描述架构的json字符串,
和一个要从中读取的流,并返回一个生成器,该生成器将生成
python版本的avro数据(dicts、lists、ints,字符串)。这取决于conda包提供所需的c库、`libsnappy`、
`jansson`和`libavro-c`.
conda create-n lancaster-c leif python lancaster
如果您的系统上安装了
`avro-c`和`libsnapy',您也可以使用pip或setuptools进行安装,这可能可以从你的操作系统包管理器。在debian和ubuntu
系统上,您可以安装“libavro dev”和“libsnapy dev”。
cd lancaster
python setup.py install
不支持递归结构(链接)。也不支持编写任何内容和
avro容器文件格式。很高兴接受拉取请求,但我个人还不需要这些功能。
LLC.[麻省理工学院许可][许可证]。
[anaconda]:https://anaconda.org/leif/lancaster
[avro]:https://avro.apache.org/
[avro-c]:http://avro.apache.org/docs/1.7.7/api/c/index.html
[许可证]:https://github.com/twosgma/lancaster/blob/master/license
==
[avro-c][avro-c]的python扩展包装器。
当前仅支持读取avro序列化数据流。
不支持写入,也不支持avro容器格式。有关兰开斯特愿意阅读的内容的更多详细信息,请参见
[兰开斯特规范](docs/spec.md)。
另请参见[avro项目页][avro]。
}'
以open('data.avro','rb')作为f:
data=list(lancaster.read_stream(schema,f))
`lancaster.read_stream()`接受一个描述架构的json字符串,
和一个要从中读取的流,并返回一个生成器,该生成器将生成
python版本的avro数据(dicts、lists、ints,字符串)。这取决于conda包提供所需的c库、`libsnappy`、
`jansson`和`libavro-c`.
conda create-n lancaster-c leif python lancaster
如果您的系统上安装了
`avro-c`和`libsnapy',您也可以使用pip或setuptools进行安装,这可能可以从你的操作系统包管理器。在debian和ubuntu
系统上,您可以安装“libavro dev”和“libsnapy dev”。
python setup.py install
不支持递归结构(链接)。也不支持编写任何内容和
avro容器文件格式。很高兴接受拉取请求,但我个人还不需要这些功能。
LLC.[麻省理工学院许可][许可证]。
[anaconda]:https://anaconda.org/leif/lancaster
[avro]:https://avro.apache.org/
[avro-c]:http://avro.apache.org/docs/1.7.7/api/c/index.html
[许可证]:https://github.com/twosgma/lancaster/blob/master/license