-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,43 @@ | ||
# 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) | ||
* 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) | ||
``` |