Codegen python interfaces for web3.py contracts.
Project description
Pypechain
Static python bindings for ethereum smart contracts.
- Parses JSON ABI's to create typesafe web3.py contract instances
- Functions have typesafe function parameters and return values
- Smart Contract internal types are exposed as dataclasses
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'
Much of this is subject to change as more features are fleshed out.
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.5.tar.gz
(13.2 kB
view hashes)
Built Distribution
pypechain-0.0.5-py3-none-any.whl
(17.4 kB
view hashes)
Close
Hashes for pypechain-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 823ee259c37b85008434ce9e7887db0d5ed41ac6649ca2f72da32e7b75a64ded |
|
MD5 | b6b7c395628cff55945273778611b546 |
|
BLAKE2b-256 | e95125f35bcd27a957b0b3a57ba33b5dd50302e5cb330937870588ebe383bdc9 |