Codegen python interfaces for web3.py contracts.
Project description
Pypechain
Static python bindings for ethereum smart contracts.
- Parses JSON ABIs to create typesafe web3.py contract instances
- Functions have typesafe function parameters and return values
- Smart Contract internal types are exposed as dataclasses
This project is a work-in-progress. All code is provided as is and without guarantee.
Install
pip install --upgrade pypechain
For development install instructions, see toplevel INSTALL.md
Usage
# pypechain <ABI_FILE> <OUT_FILE>
❯❯ pypechain './abis/ERC20.json' './build/ERC20Contract.py'
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
pypechain-0.0.14.tar.gz
(140.8 kB
view hashes)
Built Distribution
pypechain-0.0.14-py3-none-any.whl
(50.6 kB
view hashes)
Close
Hashes for pypechain-0.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cb1159d9b346bdaf5e38be6f3abe8ca0448c765e96f3f24283c7ed05430599d |
|
MD5 | dc6c5209cd47cd620f19f7d73f98cb6e |
|
BLAKE2b-256 | a355c7f866a825066a5c87c258184694d2b0b56925c44a749afe13fe68e7b716 |