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 ↓86% vs prev 7d
total hits 11
actors 6 distinct systems
last hit 4d ago Script
top countries 🇺🇸 United States · 🇫🇷 France · 🇩🇪 Germany · 🇮🇳 India · 🇨🇦 Canada
API endpoints
full doc /v1/registry/hexbytes
install /v1/registry/hexbytes/install
compatibility /v1/registry/hexbytes/compatibility