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.15-cp310-none-win_amd64.whl (109.9 kB view details)

Uploaded CPython 3.10 Windows x86-64

rusty_rlp-0.1.15-cp310-cp310-manylinux1_x86_64.whl (177.9 kB view details)

Uploaded CPython 3.10

rusty_rlp-0.1.15-cp310-cp310-macosx_10_7_x86_64.whl (164.2 kB view details)

Uploaded CPython 3.10 macOS 10.7+ x86-64

rusty_rlp-0.1.15-cp39-none-win_amd64.whl (109.9 kB view details)

Uploaded CPython 3.9 Windows x86-64

rusty_rlp-0.1.15-cp39-cp39-manylinux1_x86_64.whl (177.9 kB view details)

Uploaded CPython 3.9

rusty_rlp-0.1.15-cp39-cp39-macosx_10_7_x86_64.whl (164.2 kB view details)

Uploaded CPython 3.9 macOS 10.7+ x86-64

rusty_rlp-0.1.15-cp38-none-win_amd64.whl (106.9 kB view details)

Uploaded CPython 3.8 Windows x86-64

rusty_rlp-0.1.15-cp38-cp38-manylinux1_x86_64.whl (143.3 kB view details)

Uploaded CPython 3.8

rusty_rlp-0.1.15-cp38-cp38-macosx_10_7_x86_64.whl (117.4 kB view details)

Uploaded CPython 3.8 macOS 10.7+ x86-64

rusty_rlp-0.1.15-cp37-none-win_amd64.whl (106.9 kB view details)

Uploaded CPython 3.7 Windows x86-64

rusty_rlp-0.1.15-cp37-cp37m-manylinux1_x86_64.whl (143.3 kB view details)

Uploaded CPython 3.7m

rusty_rlp-0.1.15-cp37-cp37m-macosx_10_7_x86_64.whl (117.4 kB view details)

Uploaded CPython 3.7m macOS 10.7+ x86-64

rusty_rlp-0.1.15-cp36-none-win_amd64.whl (107.2 kB view details)

Uploaded CPython 3.6 Windows x86-64

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

Uploaded CPython 3.6m

rusty_rlp-0.1.15-cp36-cp36m-macosx_10_7_x86_64.whl (117.6 kB view details)

Uploaded CPython 3.6m macOS 10.7+ x86-64

rusty_rlp-0.1.15-cp35-none-win_amd64.whl (107.0 kB view details)

Uploaded CPython 3.5 Windows x86-64

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

Uploaded CPython 3.5m

rusty_rlp-0.1.15-cp35-cp35m-macosx_10_7_x86_64.whl (117.2 kB view details)

Uploaded CPython 3.5m macOS 10.7+ x86-64

File details

Details for the file rusty_rlp-0.1.15-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for rusty_rlp-0.1.15-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 5a81a13c4bd9d540ce7e8c3f05ffa32e06763d5df318d071e7ea23f06056a5c0
MD5 953760191d15fcb7832ad54e4fd80d28
BLAKE2b-256 71deb25632eb16c479e9de6d569d5e2df3e5a820dd5657af77d6c11b9f751523

See more details on using hashes here.

File details

Details for the file rusty_rlp-0.1.15-cp310-cp310-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for rusty_rlp-0.1.15-cp310-cp310-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e6051847352129b4228940fea5dfadac1803c1e7405d7f6ba1030098ac9cf6e3
MD5 dc037e8cd09a4f662b8c6d5df253b385
BLAKE2b-256 0dd78e9be0a71a26d787068c2cc67f8e32b91dc372852513c62cf0150c2b4659

See more details on using hashes here.

File details

Details for the file rusty_rlp-0.1.15-cp310-cp310-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for rusty_rlp-0.1.15-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 c3a91c4332b654283378d1608fca2674a7ee2d08d4083af52585db16c32ac596
MD5 81cb3c639a2070fada62371db76eb7a3
BLAKE2b-256 28c90ded95008ee18a2b3d5a616b029dd04e4ae8baa893aaba6e72b0834a4144

See more details on using hashes here.

File details

Details for the file rusty_rlp-0.1.15-cp39-none-win_amd64.whl.

File metadata

File hashes

Hashes for rusty_rlp-0.1.15-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 3ea9b8592031e9b058221a6cde094337105b8a1c982d079404d883593ed53fd7
MD5 635b848e2b720cac4a4130801ff27124
BLAKE2b-256 b0df3b25309a683f6564ef6a42402d1401e1ba70b30b98e37314a0faa36a7ad9

See more details on using hashes here.

File details

Details for the file rusty_rlp-0.1.15-cp39-cp39-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for rusty_rlp-0.1.15-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 77791f89894c4a1b77e49141c148e72992fef55fb37976b68dca3f5f681654ba
MD5 f741722ea61b89e33e2d5aab56cf7aca
BLAKE2b-256 4a21a148f5a5bc6346363f09be7f1a26ba7bd75290063ae5d00fb24677f7010f

See more details on using hashes here.

File details

Details for the file rusty_rlp-0.1.15-cp39-cp39-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for rusty_rlp-0.1.15-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 76a9953b9526cbc33d8e66d566d701645bb441593598e2493b5bb335e8c78e99
MD5 07ad82e3de379020e899e90a528a8a49
BLAKE2b-256 9b1be742847b3b95456efab8704dd264db6c0834cf50df25017243e771103639

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.15-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 9f968d04ebeac6670cec0ab5800b13c6e5b366cd862600e18d086c090738d8e4
MD5 1ca257c86ed36db96f95b7b189c70da7
BLAKE2b-256 a47e16de30b841c651e3fbb1bae3c23fad914227d3a6c57555c1b17a58a5b2d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.15-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 77565040bb51fa488b7f1bc4be9b7f9a597f0ffba9f2f08bdbd726eb291c4468
MD5 9853c21b6443c0adb65cbded6f359936
BLAKE2b-256 7f8d2228b106e29a725631b630917b5086e0b564bad85ef17603ca752712dc25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.15-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 8f38dd4747c49a3a039b66422f0b9ebc77d5a52fde3e0036e93d4bbc18dee93f
MD5 6566fe32b587f3a88ea77a5c7114ec9d
BLAKE2b-256 43eb962cab4c7595dc82c6cd72a152ab0807e4588d355a1d31bc16c90949f882

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.15-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 354cb5f6bcc879ae7ea68411918a0a1dbc6ff42c2ab5d0f72209e0a9da77355c
MD5 f8f33fb00c20de4e55fefdd8dcd262be
BLAKE2b-256 7e611c240ce3aec261c260929e10390a65f36c536d7b129c941dfedbdb5083da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.15-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 62a7a5e3ec6ed82012169644b759d00c113dd64a65ee0b0d7beac85ef3cca183
MD5 840c770b733972aca4dcb86ccae3ea56
BLAKE2b-256 17c3cfef738522a20331e8473fea7b0809e1fd41703ae817814b067155bd75e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.15-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 cc5ccd82ac396711521fda3e5387073103ff4c85289c7bc4fd983531bfbf7969
MD5 9a1964f4c1ca41366a276dae4c71d921
BLAKE2b-256 c434fc5c86edff4d1497d98d04f757d34ca63360c1cdd43f6ffbc1bc0a975061

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.15-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 ebbeb4a3b083d69a12c627389d2588fc28bb5cdd9b2d79db87d2d952972b854c
MD5 5afb02dea45c7c1b8e584e2f45309256
BLAKE2b-256 294eabfa0aa7e89d7c4180fd4292901bece8986904b0bf64dff5782207d13aa7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.15-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2fdca107e2bdc552c01d23021d64ec6b1d9efba181c74faa01a1c092356bf8a0
MD5 19b24b240f0007eb586afdfedcfdd1b3
BLAKE2b-256 d280d9461b8980653efe3254a8693ef7ddd5adc2a642989203a04da682af9d71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.15-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 9afd4a7c1d1b2611b6bb255454c1a84b076a5c3c56351febd7742f79211d188c
MD5 d4b6338cd3598d00925da85ea3dfe56f
BLAKE2b-256 0ae0905ed872317878ad62134686e9497745e33280d0ad1ed37a63acfc9d94d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.15-cp35-none-win_amd64.whl
Algorithm Hash digest
SHA256 c42bdbfa83b63b88b071ee0a42dcbca20b6f3d04c2777dc03efa29b9d1673499
MD5 a59df32b3a0014add4ca83f07cc3b4d5
BLAKE2b-256 db4f5409210a24aac02f1d598a68c929167761d2eab70af383b8aad3b6ee2961

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.15-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 68c33264599596689a9398c65495e48bf2cd463ec5a9d79d1832e8a7740975a4
MD5 a16346b1018e48e53108388aa2af74fd
BLAKE2b-256 daba4ff787cf80a11526439c9042e4c313903eed44b4adcb69dd0a63687d139a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.1.15-cp35-cp35m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 bcc276b6580b3cc6c1850cd5e55e3cb99048ccb9c5a67c1f8aeecf42ef7a9d44
MD5 1d118d15ce61c35ab0d80e9341fed64c
BLAKE2b-256 924970c6c72cd958edb47ff48fc6af5c9bf31cca89ea222c3a365b9cc143b2aa

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