Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1013243: RFP: hexbytes -- Python bytes subclass that decodes hex, with a readable console output

2 views
Skip to first unread message

Bastian Germann

unread,
Jun 19, 2022, 4:30:03 PM6/19/22
to
Package: wnpp
Severity: wishlist

* Package name : hexbytes
Upstream Author : The Ethereum Foundation
* URL : https://github.com/ethereum/hexbytes
* License : Expat
Programming Lang: Python
Description : Python bytes subclass that decodes hex, with a readable console output

This Python library is needed to update crossbar to a later upstream version.
It should be maintained in the Python Team.

HexBytes is a very thin wrapper around the python built-in bytes class. It has these three changes:

1. Accepts more initializing values, like hex strings, non-negative integers, and booleans
2. Returns hex with prefix ‘0x’ from HexBytes.hex()
3. The representation at console is in hex
0 new messages