https://github.com/yungwine/pyraptorq
Python C++ RaptorQ bindings
https://github.com/yungwine/pyraptorq
raptorq
Last synced: about 1 month ago
JSON representation
Python C++ RaptorQ bindings
- Host: GitHub
- URL: https://github.com/yungwine/pyraptorq
- Owner: yungwine
- Created: 2024-02-24T11:21:43.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-13T21:35:23.000Z (12 months ago)
- Last Synced: 2024-07-09T05:53:06.128Z (11 months ago)
- Topics: raptorq
- Language: Python
- Homepage:
- Size: 892 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pyraptorq
[](https://badge.fury.io/py/pyraptorq)
[](https://pypi.org/project/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, arm64)
* MacOS (x86_64m arm64)
* Windows (x86_64)## 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, RaptorQCppEngineengine = RaptorQCppEngine('path_to_lib')
encoder = Encoder(b'data', 2, engine)
decoder = Decoder(2, 2, 4, engine)
```