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

Uploaded CPython 3.8 Windows x86-64

rusty_rlp-0.1.14-cp38-cp38-manylinux1_x86_64.whl (145.3 kB view details)

Uploaded CPython 3.8

rusty_rlp-0.1.14-cp38-cp38-macosx_10_7_x86_64.whl (119.1 kB view details)

Uploaded CPython 3.8 macOS 10.7+ x86-64

rusty_rlp-0.1.14-cp37-none-win_amd64.whl (108.9 kB view details)

Uploaded CPython 3.7 Windows x86-64

rusty_rlp-0.1.14-cp37-cp37m-manylinux1_x86_64.whl (145.3 kB view details)

Uploaded CPython 3.7m

rusty_rlp-0.1.14-cp37-cp37m-macosx_10_7_x86_64.whl (119.1 kB view details)

Uploaded CPython 3.7m macOS 10.7+ x86-64

rusty_rlp-0.1.14-cp36-none-win_amd64.whl (109.2 kB view details)

Uploaded CPython 3.6 Windows x86-64

rusty_rlp-0.1.14-cp36-cp36m-manylinux1_x86_64.whl (145.4 kB view details)

Uploaded CPython 3.6m

rusty_rlp-0.1.14-cp36-cp36m-macosx_10_7_x86_64.whl (119.2 kB view details)

Uploaded CPython 3.6m macOS 10.7+ x86-64

rusty_rlp-0.1.14-cp35-none-win_amd64.whl (108.9 kB view details)

Uploaded CPython 3.5 Windows x86-64

rusty_rlp-0.1.14-cp35-cp35m-manylinux1_x86_64.whl (145.1 kB view details)

Uploaded CPython 3.5m

rusty_rlp-0.1.14-cp35-cp35m-macosx_10_7_x86_64.whl (118.9 kB view details)

Uploaded CPython 3.5m macOS 10.7+ x86-64

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.14-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 42b3cf58488f3c3fd5bb899051f32b8c20e1c80f782b401e3a3f7bb98db9851d
MD5 6e0e23fa55788923b922044bdb67fd9c
BLAKE2b-256 0eb5ec3ea0b813d056eda8306983141c7302572db8a901a5f07512257073d6e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.14-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bb7e3d39b5f95ce386e3ef027287a62cb433ec12c92dfd705937e1b81c3ed8d5
MD5 d0a1be548d759a9df0d20213d2b8f057
BLAKE2b-256 0b68b6142085cb1157de488b5206c1e9951dcf4d5c291ff5e73473fc7680d97b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.14-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 06099e74bc007a7419c52d7146cf1b6ee0bf28ec58e4f7c645e33f217beec00e
MD5 6c0757491c3293bac9303444c454af7b
BLAKE2b-256 4fa0dcbccf736758bf949ccbe6545aa46ae0d2a5ca9426d30298c280c0d66785

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.14-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 9cb2776913844802f253fb420ff7c77817be9b625045d101067641105f337d17
MD5 4e1d06c840e881c1c672d4e497546b6a
BLAKE2b-256 0106ee0b41aae6e0e576cdc7c67fc2a15440086147e199b4d258a6d32c8c203e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.14-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 01a7be4d5fafd319a83775b05c4df8b81fa3f598832a4c7a000d142a666ad811
MD5 fc11672c37583eaa3a46db29f9ac1463
BLAKE2b-256 1b97274da2ddc35804bbd310609785204374e83a344fa88e53ee85f097ddcffb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.14-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 cda5b3082b1485cdb9a1e75650c9bf6808ded94962662be33ba3563cdf9395b2
MD5 f5bdaabd83ab14217f36a39387003a19
BLAKE2b-256 91eee1b5af4f3d4ff94141593354ef1f129eb7a5915c43eb9ad71f09786865f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.14-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 82ac6f675fa8f27b9b4fee612030e9181503bf2f179b439abdf0fb86abdc9af0
MD5 545c18a86cd81fa45080ff17b5cadfb2
BLAKE2b-256 37f9d6f43837e3ebb2df55a951494e9b97bd1c14222508d55df84534c4ab6178

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.14-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 419d60454ee6bc992b9dc30fb5c7961f0a2fce9e8741208b06f6a0db19f9a92c
MD5 64ade25d4014b722831f9701e7dad770
BLAKE2b-256 b421ed468c4c43514cc652110ef43338926bca018eb2704b9a625de309845023

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.14-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 d5fc81cb833eadb5fbdd343141c49efea856b23cb31b7f4ba5dbe671bfd9df6a
MD5 25d2cb4c1b777af7565fbbca901d51e1
BLAKE2b-256 30d18ab49c571aaa8f56d1cb0aa26321e5f0b36e3d8dbfac3aefee413318ab1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.14-cp35-none-win_amd64.whl
Algorithm Hash digest
SHA256 40c98e405ff5e33bcd3b12224197ce3af76d2a064f7c1a2e2cba250fbb2ae992
MD5 d7b954c1db459a5805b1f26caf0d63f2
BLAKE2b-256 4eb388949a629656835da78595cdfdf5ce3aa20bea88c9efa58e19e69ec93ca9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.14-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f487d1b7c588f28f29be84b1e662ca735a0ceef3439e250bd4ee38974e92acf4
MD5 ae5e2b05cbff27069353550bff76be4e
BLAKE2b-256 235aa1bad3adbc4c0964c9dd732e5cf4d705ba0870e821e00268ece44c82741e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.14-cp35-cp35m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 3ca8ecd5e0eb4fc48dc1fe98c17cdaf2766fbac4e4a1e9d475688c72ce8e01ee
MD5 6113a9514d956f307eba984574aa9217
BLAKE2b-256 b0f3335877f22fa415492013cc894aafc9c0151fbdc7a66a43f8f314acf2c9f8

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