Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

rusty_rlp-0.1.11-cp38-none-win_amd64.whl (106.5 kB view details)

Uploaded CPython 3.8 Windows x86-64

rusty_rlp-0.1.11-cp38-cp38-manylinux1_x86_64.whl (143.2 kB view details)

Uploaded CPython 3.8

rusty_rlp-0.1.11-cp38-cp38-macosx_10_7_x86_64.whl (117.1 kB view details)

Uploaded CPython 3.8 macOS 10.7+ x86-64

rusty_rlp-0.1.11-cp37-none-win_amd64.whl (106.5 kB view details)

Uploaded CPython 3.7 Windows x86-64

rusty_rlp-0.1.11-cp37-cp37m-manylinux1_x86_64.whl (143.2 kB view details)

Uploaded CPython 3.7m

rusty_rlp-0.1.11-cp37-cp37m-macosx_10_7_x86_64.whl (117.1 kB view details)

Uploaded CPython 3.7m macOS 10.7+ x86-64

rusty_rlp-0.1.11-cp36-none-win_amd64.whl (106.9 kB view details)

Uploaded CPython 3.6 Windows x86-64

rusty_rlp-0.1.11-cp36-cp36m-manylinux1_x86_64.whl (143.5 kB view details)

Uploaded CPython 3.6m

rusty_rlp-0.1.11-cp36-cp36m-macosx_10_7_x86_64.whl (117.4 kB view details)

Uploaded CPython 3.6m macOS 10.7+ x86-64

rusty_rlp-0.1.11-cp35-none-win_amd64.whl (106.8 kB view details)

Uploaded CPython 3.5 Windows x86-64

rusty_rlp-0.1.11-cp35-cp35m-manylinux1_x86_64.whl (143.1 kB view details)

Uploaded CPython 3.5m

rusty_rlp-0.1.11-cp35-cp35m-macosx_10_7_x86_64.whl (117.0 kB view details)

Uploaded CPython 3.5m macOS 10.7+ x86-64

File details

Details for the file rusty_rlp-0.1.11-cp38-none-win_amd64.whl.

File metadata

File hashes

Hashes for rusty_rlp-0.1.11-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 89ea37a433a1c8226e61ee597e082eaabaed6304faf984146722d58175084546
MD5 1476bb328dcd4d7c171c0b460fccb8f8
BLAKE2b-256 f0a1ac4c49caa692f50a94d4a42d40c7caeea46d9197011b2c05bc1cd8fb8b39

See more details on using hashes here.

File details

Details for the file rusty_rlp-0.1.11-cp38-cp38-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for rusty_rlp-0.1.11-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4a22e9afc011290241c98121badd8dab64866fd46934e2b43d451473a9debac0
MD5 534746ebcdd41ea244071beac20a109b
BLAKE2b-256 a7de3faad7a1ea60a8a23ec7f1a57c25387b74c16ee633bdf328f65383485452

See more details on using hashes here.

File details

Details for the file rusty_rlp-0.1.11-cp38-cp38-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for rusty_rlp-0.1.11-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 4299a11d93ef9f65768cbdc3c69609dafe6ff138edc55217057d7a337b7dc007
MD5 1173061c5c173a80af74d9d9831b727a
BLAKE2b-256 7901c33636498f090cd45304f131970ba7fafe1869c7bc1d0729362e3b2954ef

See more details on using hashes here.

File details

Details for the file rusty_rlp-0.1.11-cp37-none-win_amd64.whl.

File metadata

File hashes

Hashes for rusty_rlp-0.1.11-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 ce3c0d00a28d98cc2d56c07b87398867604bb534bf7e062a0bd4617da3b0f1e1
MD5 d78636ab2448bf732a8f036f657e8dfe
BLAKE2b-256 3e40d240c8eecaf7d007f6fabbaf581d4b9d0a5abdf96ec5350995e5a9ddf445

See more details on using hashes here.

File details

Details for the file rusty_rlp-0.1.11-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for rusty_rlp-0.1.11-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 61caa7326388800276bcfb2f626c9b243e5525a3e425ae62a72926b6642d44eb
MD5 bace1c39ae952d8d4b5d2446c90c317a
BLAKE2b-256 b3dde4e935cb0642189ae1a9ee306825621931894a89f4b89e1c9a75f709c164

See more details on using hashes here.

File details

Details for the file rusty_rlp-0.1.11-cp37-cp37m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for rusty_rlp-0.1.11-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 e7c3a277de52e94fc21271f7fa667f065e3460424f95ec5555fbee3b9a157c90
MD5 d9a6985083031d51243307a66a8e0d32
BLAKE2b-256 c0d57881e05a643bdc51ec874b8c6d92348adfc7cc71cec2e1eb1f39d83def97

See more details on using hashes here.

File details

Details for the file rusty_rlp-0.1.11-cp36-none-win_amd64.whl.

File metadata

File hashes

Hashes for rusty_rlp-0.1.11-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 1ee6f2e32502a67ce85bf8583fc57e9b61aef7d2962b2514a1149f5150d976d9
MD5 37391e4eb69021dcf46e26e644bd6d00
BLAKE2b-256 90c5ca2791126844a3cd679d8a631b00d3b1cd3dfebaefad222c46ad51fcdcb4

See more details on using hashes here.

File details

Details for the file rusty_rlp-0.1.11-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for rusty_rlp-0.1.11-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3fe242b243e81ee8ed65287e6cb7e112c4347eedac1ccbc264bfc00746ffe572
MD5 d527f9910a8c8e8bdcaefbf8702781da
BLAKE2b-256 bcb0a7edc7735bd6a0a9224eede69cfd80a39059a07a82055330885304c78188

See more details on using hashes here.

File details

Details for the file rusty_rlp-0.1.11-cp36-cp36m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for rusty_rlp-0.1.11-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 b50f4fc1d37b248644a286d86febac25b5509ad7a3ef8d60e63dfc8fee92aad3
MD5 23002225103cfe8fca56024d9b047a05
BLAKE2b-256 0095b3ca78e9d863c3d9ae1d3ee545529852bd2277f370d5ed6f3240845276e5

See more details on using hashes here.

File details

Details for the file rusty_rlp-0.1.11-cp35-none-win_amd64.whl.

File metadata

File hashes

Hashes for rusty_rlp-0.1.11-cp35-none-win_amd64.whl
Algorithm Hash digest
SHA256 d72ce6dbb5050648b07333a0b932cd4fd214592cc956995efb36db4295b5e4df
MD5 4355374fb018f631402dae1705e76798
BLAKE2b-256 fb38cf3c62c864e0af7efb1a7e351a5f85173751fe7e69ecf034f7316f4d6067

See more details on using hashes here.

File details

Details for the file rusty_rlp-0.1.11-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for rusty_rlp-0.1.11-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 71c99d8060c3d02cf1e11a6f9e712af94e70715f0d41bc6ea4fe086092a4296d
MD5 6826c038b18436ec9b2d4477c13b6623
BLAKE2b-256 3d374453cdae2b964ac84ed1d3f2b3a3babcc94b326ed304f5061aeb4b9d6729

See more details on using hashes here.

File details

Details for the file rusty_rlp-0.1.11-cp35-cp35m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for rusty_rlp-0.1.11-cp35-cp35m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 ef6725e9fc14d85f9b62143b2a7e0c1f25aec7067e5c27b0f7f06436edbdadab
MD5 ce5a29032e09a6d1f4f402caed53c381
BLAKE2b-256 583488fad03a5c3263528cd1cf2a458ea3d6371d7d146252ac495552b03b4b70

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page