Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aineejames/rustle

a python rle lib built with rust
https://github.com/aineejames/rustle

Last synced: 5 days ago
JSON representation

a python rle lib built with rust

Awesome Lists containing this project

README

        

# rustle (python rle lib built with rust)

## Setup

```bash
git clone https://github.com/AineeJames/rustle.git
cd rustle
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
```

or

```bash
pip install rustle
```

## Example

```python
import rustle

print(rustle.encode_str('aaaabbbcc')) # -> 'a4b3c2'
print(rustle.decode_str('a4b3c2')) # -> 'aaaabbbcc'
```