HexBytes: Python `bytes` subclass for hex representation
JSON →HexBytes is a thin wrapper around the Python built-in `bytes` class (version 1.3.1). It extends `bytes` by accepting a wider range of initialization types including `bool`, `int`, `str`, `bytearray`, and `memoryview`. Key features include a 0x-prefixed console representation (`__repr__`) and a `to_0x_hex()` method for consistent 0x-prefixed hexadecimal string output. The library is actively maintained with regular releases.
Traffic · last 30 days ↓100% vs prev 7d
total hits 12
actors 4 distinct systems
last hit 9d ago AhrefsBot
top countries 🇺🇸 United States · 🇬🇧 United Kingdom · 🇫🇷 France · 🇩🇪 Germany
API endpoints
full doc /v1/registry/hexbytes
install /v1/registry/hexbytes/install
compatibility /v1/registry/hexbytes/compatibility