Ethereum ABI Parser Utility
Summary
This package provides a way to parse Human Readable ABI introduced by ethers.js to the Python world. It's still pretty much a WIP. The goal is to be fully compatible with ethers.js and ethers-rs.
$ pip install human-abi
from eth_abi_parser import HumanReadableParser
parser = HumanReadableParser('event TestEvent(uint indexed id, (string, uint16, (uint8, uint8)) value)')
print(parser.take_event())
# {'type': 'event', 'name': 'TestEvent', 'anonymous': False, 'inputs': [{'type': 'uint', 'name': 'id', 'indexed': True}, {'type': 'tuple', 'name': 'value', 'indexed': False, 'components': [{'type': 'string'}, {'type': 'uint16'}, {'type': 'tuple', 'components': [{'type': 'uint8'}, {'type': 'uint8'}]}]}]}
WIP
This library is still a work-in-progress. Features are being implemented as needed. But if you find it lacks what you need, feel free to submit a pull request!
LICENSE
Apache License 2.0
Metadata
Release files for eth-abi-parser 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| eth_abi_parser-0.1.2.tar.gz | 2.6 kB | Without provenance | Details for eth_abi_parser-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| eth_abi_parser-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for eth_abi_parser-0.1.2-py3-none-any.whl |
Total release size: 5.8 kB
Release files / eth_abi_parser-0.1.2.tar.gz
| Download URL | eth_abi_parser-0.1.2.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71e80b2bff8611a5fbbc57987ea759dfc6289eea139eaf6afd052d256f24024b
|
|
BLAKE2b-256 checksum How to use checksums |
9f569acd16fd9b2b49d7b242d59458449bb0b1d1e14d11147248ac9bceec96fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.0 CPython/3.11.2 Darwin/22.5.0
|
Release files / eth_abi_parser-0.1.2-py3-none-any.whl
| Download URL | eth_abi_parser-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d722e74d925b24fb34e7885154c4500d28c8fa31b45ebfac92839ce4dc149e44
|
|
BLAKE2b-256 checksum How to use checksums |
f20459dbe7c35274961ccd4f878e019e00f8ca53d76aff0bc57878bd94f49131
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.0 CPython/3.11.2 Darwin/22.5.0
|
Security for eth-abi-parser 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.