Skip to main content

No project description provided

Project description

Human ABI

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 human_abi 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

human_abi-0.1.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

human_abi-0.1.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file human_abi-0.1.1.tar.gz.

File metadata

  • Download URL: human_abi-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.11.2 Darwin/22.5.0

File hashes

Hashes for human_abi-0.1.1.tar.gz
Algorithm Hash digest
SHA256 07297b436c7568a99f017bb5bc676674922454b5ff4bdf87257d220866397c48
MD5 1d537568348bcb2deffec8772386b995
BLAKE2b-256 cc1d928580f6047a9ca7bc4125acacdba7276db2a517e556f4fb709190bdc22f

See more details on using hashes here.

File details

Details for the file human_abi-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: human_abi-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.11.2 Darwin/22.5.0

File hashes

Hashes for human_abi-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ad68d6451f3f31caba8f1870f2ad20549db5996b1c4e08c5966edb8bbc00345
MD5 939292ef2238ca482866e7108207e3f4
BLAKE2b-256 3a34ac8d333d24a40cf2813fe8cb774507a84205c838ba7eb707aed96c16aee4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page