A Python package to parse Ethereum contract ABI files
Project description
abi_parser
A simple way to parse your ABIs in Python.
Installation
pip install abiparser
from abiparser import ContractABI
abi = ContractABI('<PATH TO ABI JSON'>)
# name
name = abi.name
# functions
functions = abi.functions
# events - todo
# events = abi.events
# get function by name
function = abi.get_function('<function_name>')
# bytecode - todo
# bytecode = abi.bytecode
# get function by signature - todo
# function = abi.get_function_by_signature('<function_signature>')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
abiparser-1.0.1.tar.gz
(2.5 kB
view details)
Built Distribution
File details
Details for the file abiparser-1.0.1.tar.gz
.
File metadata
- Download URL: abiparser-1.0.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e08baf5ef446eb42d0788e577d6a5e80bcb985c92f290f95097eda2e9bd2437d |
|
MD5 | fbef833cb05ba36d30f679e37cb418b3 |
|
BLAKE2b-256 | 77dc29cb6a644f05022d650cd8a438d3ccdf9f75951e8ffb3036ad6c06f4316c |
File details
Details for the file abiparser-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: abiparser-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc5317f2a473d982b5618bab688c1b5505e895c0448fb2e6eda4a45fdb29a22f |
|
MD5 | 15f06d57d0274345f29d4d242732655b |
|
BLAKE2b-256 | f9c4a852e96f0c779cb2aeaae9b7b7dac647cc8c81be4e6173d2b14bed8f3874 |