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
See toplevel INSTALL.md
Usage
From lib/pypecahin, run:
# python pypechain/run_pypechain.py <ABI_FILE> <OUT_FILE>
❯❯ python pypechain/run_pypechain.py './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.2.tar.gz
(12.6 kB
view hashes)
Built Distribution
pypechain-0.0.2-py3-none-any.whl
(16.9 kB
view hashes)
Close
Hashes for pypechain-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca55399b8f9d4e05a5c0d692b8db2bd9cbf4a29eb5832f317c671095463a996f |
|
MD5 | c171ccdb8def5dc58fb125dab833237f |
|
BLAKE2b-256 | 65e22a7f7573da41225a390ea3665b2fba01714cfd1bcd2041d129664066f4e4 |