Skip to main content

Ethereum RLP

Recursive-length prefix (RLP) serialization as used by the Ethereum Execution Layer Specification (EELS).

Usage

Here's a very basic example demonstrating how to define a schema, then encode/decode it:

from dataclasses import dataclass
from ethereum_rlp import encode, decode_to
from ethereum_types.numeric import Uint
from typing import List

@dataclass
class Stuff:
    toggle: bool
    number: Uint
    sequence: List["Stuff"]

encoded = encode(Stuff(toggle=True, number=Uint(3), sequence=[]))
decoded = decode_to(Stuff, encoded)
assert decoded.number == Uint(3)

See the tests/ directory for more examples.

Metadata

Release files for ethereum-rlp 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ethereum-rlp 0.1.7
File Size Uploaded Provenance Actions
ethereum_rlp-0.1.7.tar.gz 14.3 kB Without provenance Details for ethereum_rlp-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ethereum-rlp 0.1.7
File Interpreter ABI Platform Actions
ethereum_rlp-0.1.7-py3-none-any.whl Python 3 none any Details for ethereum_rlp-0.1.7-py3-none-any.whl

Total release size: 24.3 kB

Release files / ethereum_rlp-0.1.7.tar.gz

Download URL ethereum_rlp-0.1.7.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3dd52772318aa036e887bcc52db5f8ad7f0c54a8213fd48e52ef559962e494b9
BLAKE2b-256 checksum
How to use checksums
818bb802cedccc7e8ea28d07075101e5106c0b63ec17e1c937c85a0e7391f927
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / ethereum_rlp-0.1.7-py3-none-any.whl

Download URL ethereum_rlp-0.1.7-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff7ff01e8d52a460ac2d68aeeccf1fa713034f4504045d45153eac303b808536
BLAKE2b-256 checksum
How to use checksums
b1a131017847a42af04049e941bc871623cef71613862f2b474986ab0d516aff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Security for ethereum-rlp 0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page