Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.48 KB

README.md

File metadata and controls

34 lines (22 loc) · 1.48 KB

pyavro-rs

GitHub version Build Status MIT licensed

Python wrapper for the avro-rs library. It relies on the official C bindings (avro-rs-ffi).

This library can be used both directly from native C programs or interfaced with your favorite language to offload encoding and ecoding of Apache Avro messages.

For more information on how the original avro-rs works, please have a look at the documentation.

Installation

The installation currently requires cargo to be installed (this will change in the future!)

Here are the steps to follow in order to run the example code within a virtualenv:

# Install rustup - https://www.rust-lang.org/en-US/install.html
$ curl https://sh.rustup.rs -sSf | sh

# Clone pyavro_rs, with the avro-rs-ffi submodule
$ git clone --recursive https://github.com/flavray/pyavro-rs.git

$ cd pyavro_rs/examples/
$ virtualenv virtualenv_run/
$ source virtualenv_run/bin/activate

# Install pyavro_rs
$ pip install -e ..

$ python example.py