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.10-cp38-none-win_amd64.whl (106.3 kB view details)

Uploaded CPython 3.8 Windows x86-64

rusty_rlp-0.1.10-cp38-cp38-manylinux1_x86_64.whl (143.0 kB view details)

Uploaded CPython 3.8

rusty_rlp-0.1.10-cp38-cp38-macosx_10_7_x86_64.whl (117.0 kB view details)

Uploaded CPython 3.8 macOS 10.7+ x86-64

rusty_rlp-0.1.10-cp37-none-win_amd64.whl (106.3 kB view details)

Uploaded CPython 3.7 Windows x86-64

rusty_rlp-0.1.10-cp37-cp37m-manylinux1_x86_64.whl (143.0 kB view details)

Uploaded CPython 3.7m

rusty_rlp-0.1.10-cp37-cp37m-macosx_10_7_x86_64.whl (117.0 kB view details)

Uploaded CPython 3.7m macOS 10.7+ x86-64

rusty_rlp-0.1.10-cp36-none-win_amd64.whl (106.5 kB view details)

Uploaded CPython 3.6 Windows x86-64

rusty_rlp-0.1.10-cp36-cp36m-manylinux1_x86_64.whl (143.2 kB view details)

Uploaded CPython 3.6m

rusty_rlp-0.1.10-cp36-cp36m-macosx_10_7_x86_64.whl (117.2 kB view details)

Uploaded CPython 3.6m macOS 10.7+ x86-64

rusty_rlp-0.1.10-cp35-none-win_amd64.whl (106.5 kB view details)

Uploaded CPython 3.5 Windows x86-64

rusty_rlp-0.1.10-cp35-cp35m-manylinux1_x86_64.whl (142.9 kB view details)

Uploaded CPython 3.5m

rusty_rlp-0.1.10-cp35-cp35m-macosx_10_7_x86_64.whl (116.8 kB view details)

Uploaded CPython 3.5m macOS 10.7+ x86-64

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.10-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 e48107a7682dfd9df27144df0307891c97472058dd346c17a33acfbb53e91ff7
MD5 79872245a58111ae045813c95488d2ed
BLAKE2b-256 79d43be5d4950d005b623ec2a4bee58621cb057cce06c1b7d7e23d4a26035c33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.10-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9c87415cd25569d3ae3da2413ecda4dd2b65b76d2e72bd54dc8803b5aa92c9fb
MD5 8c0cbde829dd88db6575eefa1be681b3
BLAKE2b-256 6b0635f13b3a51531718fc3de5d39cb4f6fcf71083e72cdde95aab35eb250fab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.10-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 8e4bdafcf7c3ea946a445bf9a1590b3e1968a46572d6b5349466cc2d8f694a77
MD5 f3c0263e9f3310559565c2458bc4cfca
BLAKE2b-256 2b5fe6b2c3b35d5c1b1ed7ced12acc7a86dbb62d9d217165f9aaddd9acb35f9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.10-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 45f3290a6ff279b50f605d4d948bea4be05be018047ae1f52adf7f9a32884ab1
MD5 b6922f2febd100a80971e2084ec446e3
BLAKE2b-256 0463079ec50fec4764ba8a429cfc3c44e8203a0550ca10c9a11fbcf17adfd3ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.10-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5db2ba436c04bda797be9aa6616a76b4a2628fb93b1a8e3770e209b649ea901b
MD5 05af9674ff53e69c5d4f6f4025caec26
BLAKE2b-256 f4c217b14c946778e701d7f156fc1f2076a61dccdeaea548728e684074b6567a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.10-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 f76ae7d8203d982e43a0fb960ac92e1648d3f4a902f2aae76e9a595396f67815
MD5 bd85c1fce84103f724f32586f1de1ffc
BLAKE2b-256 1a3180c31da81ca99e7d795e5582211683fbe955c947cd2654113b021cbe4b5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.10-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 0134dd64bc4d5560f97882e384fbb7653f7fd456ac627196576d211193d188b0
MD5 532c040b43330e1a7ed8a2c45c339a26
BLAKE2b-256 44c1070d3f2c7a7d8d9f36052443320cf13d1d29c8b3a6ef69e66ed2943570ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.10-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c9973fc214ea794d70989e0d600960e236548044db8ded5410e57f5931d76359
MD5 953ded2a9552d4d8177082cca3634f60
BLAKE2b-256 015133bd55cf99ec232dbbcd805936c937ac3adfa21216559e441041c97da29c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.10-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 15744097e819a9a73d53441f8473bc16b1de43f48c96893b90ea9894742766d6
MD5 e53485179b17c465f96978428b454a79
BLAKE2b-256 2d9d333a17cff37c8fe179a888d176761ad9a3aa45af8801390593389d0ee9ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.10-cp35-none-win_amd64.whl
Algorithm Hash digest
SHA256 7accbf675986ae2494a7917ca2bcb51d8d9f24097dd326779694671351c80661
MD5 af9bee6f0e74c54ed11b2f0c7062961f
BLAKE2b-256 d31dd30344aa1162ab96ebb7439aa64e363a7fe45dae2ad936aaac8a9ef0c380

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.10-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9a5fbf655eac10de7d8b1b7d63e7a5d68f0ef8c35f5157139bd22883080ecdb5
MD5 961227e90e2d1a2196a9d100c481e4c2
BLAKE2b-256 703efadc1bcf5a26ed61bda48af32ca23646805954ba83322bb543f8cbf85675

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.10-cp35-cp35m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 31d9a729b5eb35c0d67dd16b3e27dc90d3ad4af0cb79be61e097d33f3c589c11
MD5 4f0920ab4c8a98c98472596ee139a81e
BLAKE2b-256 3d15ef89ed03c7fa2162cac4fbf47c544786f6b311051524c3f0a10b63d4c6c7

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