Name | human-abi JSON |
Version |
0.1.1
JSON |
| download |
home_page | |
Summary | |
upload_time | 2023-06-01 09:37:29 |
maintainer | |
docs_url | None |
author | Sorawit Suriyakarn |
requires_python | >=3.6,<4.0 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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
Raw data
{
"_id": null,
"home_page": "",
"name": "human-abi",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "Sorawit Suriyakarn",
"author_email": "swit@blockpipe.io",
"download_url": "https://files.pythonhosted.org/packages/cc/1d/928580f6047a9ca7bc4125acacdba7276db2a517e556f4fb709190bdc22f/human_abi-0.1.1.tar.gz",
"platform": null,
"description": "# Human ABI\n\n## Summary\n\nThis 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).\n\n```bash\n$ pip install human-abi\n```\n\n```py\nfrom human_abi import HumanReadableParser\n\nparser = HumanReadableParser('event TestEvent(uint indexed id, (string, uint16, (uint8, uint8)) value)')\nprint(parser.take_event())\n# {'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'}]}]}]}\n```\n\n## WIP\n\nThis 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!\n\n## LICENSE\n\nApache License 2.0",
"bugtrack_url": null,
"license": "",
"summary": "",
"version": "0.1.1",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3a34ac8d333d24a40cf2813fe8cb774507a84205c838ba7eb707aed96c16aee4",
"md5": "939292ef2238ca482866e7108207e3f4",
"sha256": "8ad68d6451f3f31caba8f1870f2ad20549db5996b1c4e08c5966edb8bbc00345"
},
"downloads": -1,
"filename": "human_abi-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "939292ef2238ca482866e7108207e3f4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6,<4.0",
"size": 3100,
"upload_time": "2023-06-01T09:37:26",
"upload_time_iso_8601": "2023-06-01T09:37:26.931603Z",
"url": "https://files.pythonhosted.org/packages/3a/34/ac8d333d24a40cf2813fe8cb774507a84205c838ba7eb707aed96c16aee4/human_abi-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cc1d928580f6047a9ca7bc4125acacdba7276db2a517e556f4fb709190bdc22f",
"md5": "1d537568348bcb2deffec8772386b995",
"sha256": "07297b436c7568a99f017bb5bc676674922454b5ff4bdf87257d220866397c48"
},
"downloads": -1,
"filename": "human_abi-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "1d537568348bcb2deffec8772386b995",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6,<4.0",
"size": 2549,
"upload_time": "2023-06-01T09:37:29",
"upload_time_iso_8601": "2023-06-01T09:37:29.262228Z",
"url": "https://files.pythonhosted.org/packages/cc/1d/928580f6047a9ca7bc4125acacdba7276db2a517e556f4fb709190bdc22f/human_abi-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-01 09:37:29",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "human-abi"
}