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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8

rusty_rlp-0.1.13-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.13-cp37-none-win_amd64.whl (106.6 kB view details)

Uploaded CPython 3.7 Windows x86-64

rusty_rlp-0.1.13-cp37-cp37m-manylinux1_x86_64.whl (143.1 kB view details)

Uploaded CPython 3.7m

rusty_rlp-0.1.13-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.13-cp36-none-win_amd64.whl (106.9 kB view details)

Uploaded CPython 3.6 Windows x86-64

rusty_rlp-0.1.13-cp36-cp36m-manylinux1_x86_64.whl (143.4 kB view details)

Uploaded CPython 3.6m

rusty_rlp-0.1.13-cp36-cp36m-macosx_10_7_x86_64.whl (117.3 kB view details)

Uploaded CPython 3.6m macOS 10.7+ x86-64

rusty_rlp-0.1.13-cp35-none-win_amd64.whl (106.6 kB view details)

Uploaded CPython 3.5 Windows x86-64

rusty_rlp-0.1.13-cp35-cp35m-manylinux1_x86_64.whl (143.0 kB view details)

Uploaded CPython 3.5m

rusty_rlp-0.1.13-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.13-cp38-none-win_amd64.whl.

File metadata

File hashes

Hashes for rusty_rlp-0.1.13-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 2c9d4bc76a6858e1230e2901dee0ec78bd5a4bdb4cf96aa1f4ea5f23e854442e
MD5 319e470b89a45b1d4b16e8b937cb45e8
BLAKE2b-256 7b50c6c0fa3fafb00dc0ed63f80f2d9c2c5e2abe7813be9ab7169d0f2e3a53a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.13-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5535707142650ff8c98f6a6fa94e7a268147d1ff2806a3cbb9e4e2cca14e1b7d
MD5 027b25949a1c0079d7db6b1d746274df
BLAKE2b-256 5ce95fd1099ce62cffa995c2411f6c615dc413885f2bc5863cc215093b0d4eaa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.13-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 230e274ecb9656f4d40b703cf1ee445bcd06a849e285de98cd013edb9f67f977
MD5 70b65089f720b13730cebe79899c2c09
BLAKE2b-256 1fc602339df28604b87aae0f0dc13c0d3ed49da4e1b4fd5209a5b2ff059fced3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.13-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 bf990a3d663c943ed4555a37ec1374a2147eb68b60f9bdbb595168b9c82a2a7b
MD5 14ea7caed68bbda4340d07c3646b71b3
BLAKE2b-256 0ade8b9c89830f5453aa5e7a397aadfae305a5688b233dadd00800c0effc4c11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.13-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ec1c3a14fd96f7c3dbcf7b192db18f2a3ccdf4bd03a458f3e27f7c7173166d44
MD5 b6e1b6c59be6a7fe781c5cce9922168a
BLAKE2b-256 aff2f9c9a59c3530229c9dfea561f67a307f13843077c9d3ed68f769805b7500

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.13-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 799e621f6e867992b595965bac670606cfb5c6872dfe739fffc0b588c4355517
MD5 7cbb4ce2a4fa3fccbce133a3e9c8c991
BLAKE2b-256 6b86e985006b3db19482eabb34e131e82034303fd6628bf0cd005e125dfea174

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.13-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 def0f4371c9b0e22ca82dfd95a4994d5c9d7e722470e531b2e7f273c8f7bff26
MD5 a25bbbb2397f9676e9d484036318e7fa
BLAKE2b-256 b81f13ff4e5d4b5b59232c29f3553be200e6e11b49fed8265b27e022e44c61f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.13-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 48b6bb06d28541ded6c8e2a6ba13ffb24e11684e1fc0dc8e2ff9116241863f3e
MD5 7ceb6f023129af3d9adf765cfa5468ba
BLAKE2b-256 d8f58387328d16b27be4bb1c4ea1cac748a2c85de1961fa03acd3d69066da484

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.13-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 f5344c2acfd4b7a539c8c60a8611c1cfa29b666f928901d84e8a7b70952e434d
MD5 867dd9009b71ff3a522b409f6bdcd90e
BLAKE2b-256 f52d4ede25c18249b5508c3eacf62875dc99eebe5f7f3426045831c62cdedbda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.13-cp35-none-win_amd64.whl
Algorithm Hash digest
SHA256 0946ec60a5039081901cacf9f2a3f3c6cd179d9aeb94ec23f4f75349bd380354
MD5 5e941a81c6c6a1d79ec788cebb3d4282
BLAKE2b-256 f23578c03edc39b4ca942316689609924c7f74c7a4bc05c494e2b741e716dee7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.13-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5dbe2440a6c0929f9d1bc11b979c5e1056576bf828f78cc6c610269791a7250a
MD5 43776fb0c6462e4627623b8217cea8da
BLAKE2b-256 a228cfd4429caf477a916e7da7b231cabfaed2675c5aa11ff8f7fe7aac7898e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.13-cp35-cp35m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 2ec750045df00b8f7a3ba8a52602287240d827e7686feab3a826b0b2f9240464
MD5 c6717a68ae20e5a1e7ab765ff5ec5dcd
BLAKE2b-256 c5177201fb6d4d007543dca96fe86dc6c535953ad55279791c38926527163b8f

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