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.4.tar.gz
(13.1 kB
view hashes)
Built Distribution
pypechain-0.0.4-py3-none-any.whl
(17.3 kB
view hashes)
Close
Hashes for pypechain-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8161d8e0f35ec0be6cfa7e49ea4093675bc5823374b4272f81032d68b43c2ee |
|
MD5 | 3449105e0da6fcaeb0871b6d1881675c |
|
BLAKE2b-256 | fbafd9d20abfd7da35bd81d3c661861dc4d93931acd52682171c383f4a95e7af |