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.10.tar.gz
(33.9 kB
view hashes)
Built Distribution
pypechain-0.0.10-py3-none-any.whl
(48.6 kB
view hashes)
Close
Hashes for pypechain-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2ac43e1674bbdfd92c3042aa24b6d0962031c4a31ead02a4a02b686be731d2e |
|
MD5 | fa09b8012e0b49f561234f2b368238a7 |
|
BLAKE2b-256 | 3f28964be17c56508601d147af2399b8803f5bddf15b7e6d84bd4c81b54cd99b |