Metadata-Version: 2.1
Name: human-abi
Version: 0.1.0
Summary: 
Author: Sorawit Suriyakarn
Author-email: swit@blockpipe.io
Requires-Python: >=3.6,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Description-Content-Type: text/markdown

# Human ABI

## Summary

This package provides a way to parse [Human Readable ABI](https://docs.ethers.org/v5/api/utils/abi/formats/#abi-formats--human-readable-abi) introduced by [ethers.js](https://ethers.org/) to the Python world. It's still pretty much a WIP. The goal is to be fully compatible with [ethers.js](https://ethers.org/) and [ethers-rs](https://github.com/gakonst/ethers-rs).

```bash
$ pip install human_abi
```

```py
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
