eth-abi-parser


Nameeth-abi-parser JSON
Version 0.1.2 PyPI version JSON
download
home_page
SummaryA human-readable ABI parser for Ethereum smart contracts
upload_time2023-06-01 14:36:54
maintainer
docs_urlNone
authorSorawit 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.
            # Ethereum ABI Parser Utility

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

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "eth-abi-parser",
    "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/9f/56/9acd16fd9b2b49d7b242d59458449bb0b1d1e14d11147248ac9bceec96fc/eth_abi_parser-0.1.2.tar.gz",
    "platform": null,
    "description": "# Ethereum ABI Parser Utility\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 eth_abi_parser 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": "A human-readable ABI parser for Ethereum smart contracts",
    "version": "0.1.2",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f20459dbe7c35274961ccd4f878e019e00f8ca53d76aff0bc57878bd94f49131",
                "md5": "9e0801bbeb33c8b06b1df6e9ca43f612",
                "sha256": "d722e74d925b24fb34e7885154c4500d28c8fa31b45ebfac92839ce4dc149e44"
            },
            "downloads": -1,
            "filename": "eth_abi_parser-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9e0801bbeb33c8b06b1df6e9ca43f612",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6,<4.0",
            "size": 3199,
            "upload_time": "2023-06-01T14:36:51",
            "upload_time_iso_8601": "2023-06-01T14:36:51.219259Z",
            "url": "https://files.pythonhosted.org/packages/f2/04/59dbe7c35274961ccd4f878e019e00f8ca53d76aff0bc57878bd94f49131/eth_abi_parser-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9f569acd16fd9b2b49d7b242d59458449bb0b1d1e14d11147248ac9bceec96fc",
                "md5": "744e5bd52e5821f6a16ce1013c3a64b7",
                "sha256": "71e80b2bff8611a5fbbc57987ea759dfc6289eea139eaf6afd052d256f24024b"
            },
            "downloads": -1,
            "filename": "eth_abi_parser-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "744e5bd52e5821f6a16ce1013c3a64b7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6,<4.0",
            "size": 2608,
            "upload_time": "2023-06-01T14:36:54",
            "upload_time_iso_8601": "2023-06-01T14:36:54.780110Z",
            "url": "https://files.pythonhosted.org/packages/9f/56/9acd16fd9b2b49d7b242d59458449bb0b1d1e14d11147248ac9bceec96fc/eth_abi_parser-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-01 14:36:54",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "eth-abi-parser"
}
        
Elapsed time: 0.07395s