Skip to content

A faster fork of hexbytes: Python `bytes` subclass that decodes hex, with a readable console output. Implemented in C.

License

BobTheBuidler/faster-hexbytes

 
 

Repository files navigation

I forked hexbytes and compiled it to C. It does the same stuff, now faster

PyPI Monthly Downloads Codspeed.io Status

This fork will be kept up-to-date with hexbytes. I will pull updates as they are released and push new faster-hexbytes releases to PyPI.
faster_hexbytes.HexBytes inherits from hexbytes.HexBytes, so porting to faster-hexbytes does not require you to update any isinstance or issubclass checks. All such checks in your codebase, and in any dependencies, will continue to work as they did when originaly implemented.
We benchmark faster-hexbytes against the original hexbytes for your convenience. See results.
You can find the compiled C code and header files in the build directory.
You may also be interested in: faster-web3.py, faster-eth-abi, and faster-eth-utils
The original hexbytes readme is below:

HexBytes

Join the conversation on Discord Build Status PyPI version Python versions Docs build

Python bytes subclass that decodes hex, with a readable console output

Read the documentation.

View the change log.

Installation

python -m pip install hexbytes

About

A faster fork of hexbytes: Python `bytes` subclass that decodes hex, with a readable console output. Implemented in C.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 78.2%
  • Python 19.4%
  • Makefile 2.1%
  • Shell 0.3%