{"id":21312,"library":"eth-stdlib","title":"eth-stdlib","description":"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.","status":"active","version":"0.2.8","language":"python","source_language":"en","source_url":"https://github.com/skellet0r/eth-stdlib","tags":["ethereum","abi","keccak","address","checksum"],"install":[{"cmd":"pip install eth-stdlib","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"note":"Library name is eth_stdlib, not eth_stdlib (missing 'b')","wrong":"from eth_stdlib import Address","symbol":"Address","correct":"from eth_stdlib import Address"},{"note":"Function is called keccak256, not keccak; from eth_stdlib directly","wrong":"import keccak","symbol":"keccak256","correct":"from eth_stdlib import keccak256"},{"note":"This library has its own version; import from eth_stdlib","wrong":"from eth_utils import to_checksum_address","symbol":"to_checksum_address","correct":"from eth_stdlib import to_checksum_address"}],"quickstart":{"code":"from eth_stdlib import Address, keccak256, to_checksum_address\n\naddr = Address('0x1234567890123456789012345678901234567890')\nprint(addr.checksummed)  # EIP-55 checksummed address\nprint(keccak256(b'hello').hex())  # keccak256 hash\n\naddr2 = to_checksum_address('0x1234567890123456789012345678901234567890')\nprint(addr2)","lang":"python","description":"Basic usage with Address class and utility functions."},"warnings":[{"fix":"Use 'from eth_stdlib import ...'.","message":"Library name is 'eth-stdlib' on PyPI but import path is 'eth_stdlib' (with 'b'). Common mistake: typing 'eth_stdlib' (missing 'b') in import.","severity":"gotcha","affected_versions":"all"},{"fix":"Ensure input is a string, not bytes.","message":"The Address class constructor expects a hex string with or without '0x' prefix. Passing bytes will raise an error.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Use 'to_checksum_address'.","message":"Function 'to_checksum' (without '_address') may be removed in future versions.","severity":"deprecated","affected_versions":"<0.3.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Import as 'from eth_stdlib import ...' (with 'b').","cause":"Misspelling library name as 'eth_stdlib' (missing 'b')","error":"ImportError: No module named 'eth_stdlib'"},{"fix":"Use 'keccak256' from eth_stdlib.","cause":"Using wrong function name 'keccak' instead of 'keccak256'","error":"AttributeError: module 'eth_stdlib' has no attribute 'keccak'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}