Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

abiparser-1.0.1-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

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