Python RLP serialization/deserialization based on a rapid fast Rust implementation.
Project description
Rusty-RLP
Rapid fast RLP serialization / deserialization for Python.
As the name suggest, rusty-rlp is written in Rust and based on the battle-tested, MIT-licensed
rlp implementation that is also used by OpenEthereum.
Usage
from rusty_rlp import decode_raw, encode_raw
encoded = encode_raw(b'some_string')
decoded = decode_raw(encoded)
Running the tests
The library exposes a pure Python API and all tests are implemented in python_tests.py
Run the tests:
make test
Note: There do exists some tests implemented in Rust that can be run with cargo tests but those do not test this library but the underlying rlp library instead. They exist merely to prove some assumptions about the underlying library.
Benchmarks
We provide some benchmarks against pyrlp.
| Encoding (msec/loop) | Decoding (msec/loop) | |
|---|---|---|
| PyRLP | 0.016 | 0.014 |
| rusty-rlp | 0.00173 (~9x) | 0.00595 (~2.35x) |
Running the benchmarks
make benchmark
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rusty_rlp-0.4.0-cp312-none-win_amd64.whl.
File metadata
- Download URL: rusty_rlp-0.4.0-cp312-none-win_amd64.whl
- Upload date:
- Size: 110.8 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
445b3b28bbea8f140d4f32a12fe7c11c362b651788c6d07203e8a70682ac23f4
|
|
| MD5 |
0d83af465bca0624a711b406dd5aba49
|
|
| BLAKE2b-256 |
320b9305ce979f1355fb59a2231ad5f2bea1974d648bd88ca720af66f48924ef
|
File details
Details for the file rusty_rlp-0.4.0-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: rusty_rlp-0.4.0-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 236.6 kB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be1d8e7aedf38d74131229bd8b083f4c5923ef65709a2fa71c0fcca394057cb6
|
|
| MD5 |
7ee8d91596c854e152a8c5308aa9c072
|
|
| BLAKE2b-256 |
641e479dfcda72419ee87bf9db8f6c2455259a1be5f1f89244536e2483c4d80f
|
File details
Details for the file rusty_rlp-0.4.0-cp312-cp312-macosx_10_12_x86_64.whl.
File metadata
- Download URL: rusty_rlp-0.4.0-cp312-cp312-macosx_10_12_x86_64.whl
- Upload date:
- Size: 178.8 kB
- Tags: CPython 3.12, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
009788da3d0f90aaeb3edb1dd5c323e7aef372d809a0382c3d117bed5782be1d
|
|
| MD5 |
5757d744f693e92a4a782d796994b224
|
|
| BLAKE2b-256 |
ab310e28f52a59b6628d05deb0a2fa08bff6224a6688b459b41d4f2a50096063
|
File details
Details for the file rusty_rlp-0.4.0-cp311-none-win_amd64.whl.
File metadata
- Download URL: rusty_rlp-0.4.0-cp311-none-win_amd64.whl
- Upload date:
- Size: 110.8 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1076c4fba0c81f2f49a5ba33690724fc5f5331e868f3fc4742a88bba1797b24
|
|
| MD5 |
4675213acfcd52010d3eeb6225b83a71
|
|
| BLAKE2b-256 |
2bd35f708ba9c4532a225cd4cc4d723f1bc5059bbd4ba65f013ae67bc0587492
|
File details
Details for the file rusty_rlp-0.4.0-cp311-cp311-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: rusty_rlp-0.4.0-cp311-cp311-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 236.6 kB
- Tags: CPython 3.11, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54df22a28f36d71eb83876a1b6ff97990ce15cd23c744b9401055f75e9397e62
|
|
| MD5 |
dcbcb83298c5e29af27a6937a6a4a5fd
|
|
| BLAKE2b-256 |
6f3d09c204f2907cd069fd32c3c65f81afac891833fc19c820dd5bca8e802e65
|
File details
Details for the file rusty_rlp-0.4.0-cp311-cp311-macosx_10_12_x86_64.whl.
File metadata
- Download URL: rusty_rlp-0.4.0-cp311-cp311-macosx_10_12_x86_64.whl
- Upload date:
- Size: 178.8 kB
- Tags: CPython 3.11, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94dad740d786482ae3d814200983f26d8d7496dd6b30698d4e108da2e50a57b9
|
|
| MD5 |
96f5da7ea22af1c5d36da93b48d6b27d
|
|
| BLAKE2b-256 |
bb232200ed8ed186c55e248ff3639a354c89e5ea89dafa0611238576e6fa4bd1
|
File details
Details for the file rusty_rlp-0.4.0-cp310-none-win_amd64.whl.
File metadata
- Download URL: rusty_rlp-0.4.0-cp310-none-win_amd64.whl
- Upload date:
- Size: 110.8 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc31540a92d77c2d53013afd2f8ce567d4e606f59b4b795deb9beebf5bf1fbbd
|
|
| MD5 |
ffb75ed4f9987bec9884b89d826f6e03
|
|
| BLAKE2b-256 |
54e122535aaee8d098dceccab6db4fcecac4854678e0e60c8a0821316f1ba756
|
File details
Details for the file rusty_rlp-0.4.0-cp310-cp310-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: rusty_rlp-0.4.0-cp310-cp310-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 236.6 kB
- Tags: CPython 3.10, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dab2e6f064d5641d8394d522ba1de6bcbc3a9845efe182149f16245b7932f40e
|
|
| MD5 |
bba1fb8d9e707d7c01967bae3ecfd30f
|
|
| BLAKE2b-256 |
7ec50bc2e9008b9f29da2e309bc4a29a0032d05175a97e64af82f5e45e1fc1ba
|
File details
Details for the file rusty_rlp-0.4.0-cp310-cp310-macosx_10_12_x86_64.whl.
File metadata
- Download URL: rusty_rlp-0.4.0-cp310-cp310-macosx_10_12_x86_64.whl
- Upload date:
- Size: 178.8 kB
- Tags: CPython 3.10, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3740797a3dc11467f320098aef314f7fab7cd6884e3b15ad1eea17032f6dc073
|
|
| MD5 |
edc3f77a97b0618b5a71fc5fc0567852
|
|
| BLAKE2b-256 |
038e0e22fd27ec5d407a5303d3becf9432f35431fc19a12a00d00f9e5b3449a6
|
File details
Details for the file rusty_rlp-0.4.0-cp39-none-win_amd64.whl.
File metadata
- Download URL: rusty_rlp-0.4.0-cp39-none-win_amd64.whl
- Upload date:
- Size: 110.8 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b3eba7e1cf7abd37041edb575ff390b8691a14390e0b8e674d967312a603faf
|
|
| MD5 |
4809212a6489a0362a687f679746dfaf
|
|
| BLAKE2b-256 |
0c8adae76c7136248f6336d524b8c764842e7a6ec876cdb68060cb4731eebca6
|
File details
Details for the file rusty_rlp-0.4.0-cp39-cp39-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: rusty_rlp-0.4.0-cp39-cp39-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 236.6 kB
- Tags: CPython 3.9, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e231f797ea90da28331851b12f2524456c2c3cfdbb7ccfef25821fbbd0fb092
|
|
| MD5 |
476dc347488f0c01a54734f1dfd96b4e
|
|
| BLAKE2b-256 |
a32dd694b5544de25133830b31318c2ec4ba666491eeec2425dd7cd991b174d6
|
File details
Details for the file rusty_rlp-0.4.0-cp39-cp39-macosx_10_12_x86_64.whl.
File metadata
- Download URL: rusty_rlp-0.4.0-cp39-cp39-macosx_10_12_x86_64.whl
- Upload date:
- Size: 178.8 kB
- Tags: CPython 3.9, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4740ae9b3042c508bad5fb267567feb8477039a52fde82ef3660c0c9c944ba59
|
|
| MD5 |
a7e85f23886937cdfaf8c70932bee620
|
|
| BLAKE2b-256 |
24c1268489a6429ad18952f4b5d9f57cfa78b86de81c5174519781f07a52fd6f
|
File details
Details for the file rusty_rlp-0.4.0-cp38-none-win_amd64.whl.
File metadata
- Download URL: rusty_rlp-0.4.0-cp38-none-win_amd64.whl
- Upload date:
- Size: 110.8 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b464097401328a6be715e490d271716f3c48b8b447c2d61cbe4072e5ceab498
|
|
| MD5 |
3cfd20a7a93d5e7d9832c6a3a223a496
|
|
| BLAKE2b-256 |
42ec9d630a94700f1a7ae8b2d7a279ba00aba0a652cfb4f365a10419da015c57
|
File details
Details for the file rusty_rlp-0.4.0-cp38-cp38-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: rusty_rlp-0.4.0-cp38-cp38-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 236.6 kB
- Tags: CPython 3.8, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff0e2c1152077e475aae434725c524cb6a61a129f5ce0fb11abcc895adbe872a
|
|
| MD5 |
c7efa76ba4e9698fc17bb2d0eb3971d0
|
|
| BLAKE2b-256 |
b4bd1e65bb2fa6cc1f5f1befb8c7c9c326ea808f190e7eb751a3038ca1e782a7
|
File details
Details for the file rusty_rlp-0.4.0-cp38-cp38-macosx_10_12_x86_64.whl.
File metadata
- Download URL: rusty_rlp-0.4.0-cp38-cp38-macosx_10_12_x86_64.whl
- Upload date:
- Size: 178.8 kB
- Tags: CPython 3.8, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91f97432b1b0a910bdc8586364aac951a62e4fc3d15e31de314e9b71e65500e4
|
|
| MD5 |
2fe3c154b94f6ef2c1704f66b5f7da74
|
|
| BLAKE2b-256 |
68abef3459b3dfe6a40975d128796cf4d629d1eda9d664b79b4d293a3e0f8631
|