{"id":21332,"library":"faster-eth-utils","title":"faster-eth-utils","description":"A faster fork of eth-utils providing common utility functions for Python code that interacts with Ethereum, implemented in C. Current version 5.3.26, requires Python >=3.10 and <4. Released frequently, approximately weekly.","status":"active","version":"5.3.26","language":"python","source_language":"en","source_url":"https://github.com/BobTheBuidler/faster-eth-utils","tags":["ethereum","utilities","c-extension","fork"],"install":[{"cmd":"pip install faster-eth-utils","lang":"bash","label":"Default install"}],"dependencies":[],"imports":[{"note":"faster-eth-utils is a drop-in replacement; import from eth_utils as usual, but the C implementation is used automatically if installed.","wrong":"from faster_eth_utils import to_bytes","symbol":"to_bytes","correct":"from eth_utils import to_bytes"},{"note":"Same as above; import from eth_utils.","wrong":"from faster_eth_utils import to_checksum_address","symbol":"to_checksum_address","correct":"from eth_utils import to_checksum_address"},{"note":"Use eth_utils for all imports; faster-eth-utils monkey-patches or replaces under the hood.","wrong":"from faster_eth_utils import keccak","symbol":"keccak","correct":"from eth_utils import keccak"}],"quickstart":{"code":"from eth_utils import to_bytes, to_checksum_address, keccak\n\n# Example: convert hex to bytes\nresult = to_bytes(hexstr='0xdeadbeef')\nprint(result)\n\n# Example: checksum address\naddr = to_checksum_address('0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed')\nprint(addr)\n\n# Example: keccak hash\nhash = keccak(b'test')\nprint(hash.hex())","lang":"python","description":"Basic usage: import from eth_utils as if using the original eth-utils. faster-eth-utils accelerates functions transparently."},"warnings":[{"fix":"Upgrade Python to 3.10+.","message":"Python 3.9 support removed. Requires Python >=3.10.","severity":"deprecated","affected_versions":">=5.3.0"},{"fix":"Pin version and review changelog before upgrading.","message":"Function signatures may change in minor versions. Test thoroughly when upgrading.","severity":"breaking","affected_versions":">=5.0.0"},{"fix":"Uninstall eth-utils before installing faster-eth-utils, or use a virtual environment.","message":"Do not install both eth-utils and faster-eth-utils in the same environment. faster-eth-utils is intended as a replacement.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Ensure faster-eth-utils is installed (pip install faster-eth-utils) and that eth-utils is not installed separately.","cause":"Missing dependency or incompatible version of eth-utils / faster-eth-utils.","error":"ImportError: cannot import name 'to_bytes' from 'eth_utils'"},{"fix":"Install faster-eth-utils (pip install faster-eth-utils). Import from eth_utils, not faster_eth_utils.","cause":"faster-eth-utils is not installed, or the import path is wrong.","error":"ModuleNotFoundError: No module named 'eth_utils'"},{"fix":"Check the function signature in the latest documentation. For to_bytes, use hexstr= parameter as shown, or upgrade to the latest version.","cause":"Using an older version of eth-utils API that is not supported in faster-eth-utils.","error":"TypeError: to_bytes() got an unexpected keyword argument 'hexstr'","affected_versions":">=5.3.0"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}