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

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.10

rusty_rlp-0.2.1-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.2.1-cp39-none-win_amd64.whl (109.9 kB view details)

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9

rusty_rlp-0.2.1-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.2.1-cp38-none-win_amd64.whl (109.9 kB view details)

Uploaded CPython 3.8 Windows x86-64

rusty_rlp-0.2.1-cp38-cp38-manylinux1_x86_64.whl (177.9 kB view details)

Uploaded CPython 3.8

rusty_rlp-0.2.1-cp38-cp38-macosx_10_7_x86_64.whl (164.2 kB view details)

Uploaded CPython 3.8 macOS 10.7+ x86-64

rusty_rlp-0.2.1-cp37-none-win_amd64.whl (109.9 kB view details)

Uploaded CPython 3.7 Windows x86-64

rusty_rlp-0.2.1-cp37-cp37m-manylinux1_x86_64.whl (177.9 kB view details)

Uploaded CPython 3.7m

rusty_rlp-0.2.1-cp37-cp37m-macosx_10_7_x86_64.whl (164.2 kB view details)

Uploaded CPython 3.7m macOS 10.7+ x86-64

rusty_rlp-0.2.1-cp36-none-win_amd64.whl (110.1 kB view details)

Uploaded CPython 3.6 Windows x86-64

rusty_rlp-0.2.1-cp36-cp36m-manylinux1_x86_64.whl (178.0 kB view details)

Uploaded CPython 3.6m

rusty_rlp-0.2.1-cp36-cp36m-macosx_10_7_x86_64.whl (164.3 kB view details)

Uploaded CPython 3.6m macOS 10.7+ x86-64

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.2.1-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 fd0d31f8c95539df97abb8c887089f80af00d088efb2723aabfc446b0e7fb3c0
MD5 3651288eb08276e22dd4ce1485808954
BLAKE2b-256 743fcd3ce00aac783028ee06697f7e421e9792a39d1b5b5d1c3bf34610b18c52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.2.1-cp310-cp310-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3aec6f2b47cb3c8f02e99ca4e1eb110d2d7030580568a31ad45ca78ab0353bd0
MD5 51cd4dd3b8e3b990220b2414104dbf8d
BLAKE2b-256 8e4f698a116e11fc4d16a61dd8dcbee1bb89c02d07c3ddc043424f3e5cdee475

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.2.1-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 0e2affd224960fcf813e3ecc765864c965f73f2ac78cb9dd6cb16946e6958e79
MD5 f3a4415b0ddb784b4ce978a165b2621d
BLAKE2b-256 f2ab0221cda84a2784b0cb70f18a23349e16c7008ebf5eb8bf8da40d12aa9e7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.2.1-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 28b563120e5391365100ad25a0327235613f04a1f8b7bee47d2cf9546de137b5
MD5 cd6a96c76074a828161fdf7a616f1d70
BLAKE2b-256 3ba41ca6cbc0cec6f14931d16432e33d21572b3e459a7a2c44da2d0c2ab6a389

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.2.1-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d48c96bd3934ebf246e2bae986ab222d423ba431e05a29fa7bb6d9e82334a54a
MD5 3cb1dd7dac1392d54dc5011cb598394e
BLAKE2b-256 fe0dff4751f5c0ae4f36062321cf03d50a72dea1b8378914db4d4e233089a406

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.2.1-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 d083944cd76f1f10f5a564ff136dc3bc9e4b52f1cad63a980bc2b3712865778a
MD5 acf9c3120cd4043ce31bcb148e774f0b
BLAKE2b-256 fe92500719141936bf7da08f59d486e18ba3f4911b551b0078cf6783a5115fbe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.2.1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 a174c16257f643abe6600e51570ea591aaf8a3122a1a277c803d527b20c01d9b
MD5 6d395aa0acef4c0c5c8a67d637d6aea9
BLAKE2b-256 63e9e880787255ff6c20656b3d5ecb94006337624a702b662db5e456f657a74c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.2.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5b55b3934557f47fc7790443d73b79414ef851a5509962085f18652019bbe98f
MD5 e66bc6b6268105afe4578b00ef5124b5
BLAKE2b-256 321b22696151f5015572e84bf85f85243046b7301dd416e4860dbc9d8fc73f1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.2.1-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 bedb057cbdc3cafba64f096be6421706208d6bc9ba0ff0cafa61bfca017e2ebe
MD5 9e2831cec56d6fca1eca3347fd00ce39
BLAKE2b-256 ef3241ce5c5eaeb9d28d8b0195dffd5c484bab5d08bd725ec646316ecd4c2d5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.2.1-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 ef5f49b77af3cb76ab3aafca788be2e03eb7c0d47d9eaf9946aece82195b6808
MD5 58dc294f5d8986e9e1bd660b85ea9098
BLAKE2b-256 ec7eea25640ce457fbf0c6cbc2c9e85b3d766893f110400fdcf290f7ddfafc90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.2.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 11075717e52ec4f247bb26b85044c3bcb3b2d0fc2a7116e83b4f48e53c4c3b08
MD5 e82f9060687108a75e08285066c200f6
BLAKE2b-256 383b17433fe549fa5ebdaf89267ec7f6633d95c4c1521ec035f0de41cbb34f20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.2.1-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 dcdf542322249bfa09c11e13e73799cd2a4a59740b0b3aac109fe86891c6ebcb
MD5 e23db997bb798c319df7363da1317248
BLAKE2b-256 7385252fe4ff7e73f8d79d6f2b6e500b058bb16c0df5be8565d45526d1b6d98c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.2.1-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 0a274ab122ece361ddf8844cc364a3248c4c9e3e2e0056254df1ccbd052e9526
MD5 9639f67939877edcee2ca6b12c455580
BLAKE2b-256 9a22f189bd2ebbeb14a05a64fe9ba3afe0847a3fce514c2173aa2f0fe75476d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.2.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 261122c3e48e3523d2aa6dc9ed4a9cb57c509c8e318f0bf9cb4ea3fb02d7ac91
MD5 094279268349f117c3ff008ef94033f8
BLAKE2b-256 7c571c3dec9b2d49e71d0b00b6eb98401168819c2f678957587e4899b0415653

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_rlp-0.2.1-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 f45f13ac4a066e568630e20412d09c5946d12e1159a9a7166a2aae4985a751b3
MD5 5c67babfa47fbcc9a19c703145a3ed3c
BLAKE2b-256 5bfc82821a75f4670fc4ee35b403f37972a4cf381b11fa820a5764bdd8284485

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