Registry / serialization / eth-stdlib

eth-stdlib

JSON →
library0.2.8pypypiunverified

Ethereum Standard Library for Python provides common utilities for Ethereum development, including address handling, ABI encoding/decoding, keccak hashing, and EIP-55 checksums. Current version 0.2.8, released monthly.

pip install eth-stdlib
INSTALL
IMPORT
SIG · ETH-STDLIB
E
eth-stdlib
serializationpythonv0.2.8
Install
2.0s avg
Import
—
Disk
25MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.2.8 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 26.5MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 2.0s · import 0.000s · 28MB
25MB installed
● package 25MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Address
✓ from eth import Address
✗ from eth import Address

Basic usage with Address class and utility functions.

from eth_stdlib import Address, keccak256, to_checksum_address addr = Address('0x1234567890123456789012345678901234567890') print(addr.checksummed) # EIP-55 checksummed address print(keccak256(b'hello').hex()) # keccak256 hash addr2 = to_checksum_address('0x1234567890123456789012345678901234567890') print(addr2)
Debug
Known issues
gotchaLibrary name is 'eth-stdlib' on PyPI but import path is 'eth_stdlib' (with 'b'). Common mistake: typing 'eth_stdlib' (missing 'b') in import.
fix
Use 'from eth_stdlib import ...'.
affects: all
gotchaThe Address class constructor expects a hex string with or without '0x' prefix. Passing bytes will raise an error.
fix
Ensure input is a string, not bytes.
affects: >=0.1.0
deprecatedFunction 'to_checksum' (without '_address') may be removed in future versions.
fix
Use 'to_checksum_address'.
affects: <0.3.0
Upgrade
Version history
0.2.8latest on PyPI · released Jan 20, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
Amazon
3
Resources
eth-stdlib — pip install eth-stdlib · libregistry