Metadata-Version: 2.1
Name: pyraptorq
Version: 0.1.2
Summary: RaptorQ RFC6330 C++ bindings for python
Home-page: https://github.com/yungwine/pyraptorq
Author: Maksim Kurbatov
Author-email: cyrbatoff@gmail.com
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# pyraptorq


[![PyPI version](https://badge.fury.io/py/pyraptorq.svg)](https://badge.fury.io/py/pyraptorq) 
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyraptorq)](https://pypi.org/project/pyraptorq/)
![](https://pepy.tech/badge/pyraptorq) 
[![Downloads](https://static.pepy.tech/badge/pyraptorq)](https://pepy.tech/project/pyraptorq) 

Python bindings with RaptorQ implementation.

## Examples

You can find usage example in the [/examples](/examples) folder.

## Supported platforms

* Linux (x86_64)
* MacOS (arm64)
* Windows (x86_64)
* should be more in future

## How to install

### From pypi, if your system is supported

```bash
pip install pyraptorq
```

### From source 



* Compile shared library as described in [cpp-raptorq/README.md](https://github.com/yungwine/cpp-raptorq?tab=readme-ov-file#compile-from-sources)
* Create instance of `RaptorQCppEngine` with path to shared library as argument and provide it to `Decoder` and `Encoder`.

```python
from pyraptorq import Encoder, Decoder, RaptorQCppEngine


engine = RaptorQCppEngine('path_to_lib')
encoder = Encoder(b'data', 2, engine)
decoder = Decoder(2, 2, 4, engine)
```
