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.3.tar.gz
(12.9 kB
view hashes)
Built Distribution
pypechain-0.0.3-py3-none-any.whl
(17.2 kB
view hashes)
Close
Hashes for pypechain-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 558095676efc8aa1fcf37ce56e65cf55fffea22c7dc12b6c9da885033eacc949 |
|
MD5 | 4a30fc3f354a4e0f18a31d421c7ff2f5 |
|
BLAKE2b-256 | 08e6fe3c2b489b122cc284eed458e7d7a35e2392fc122b757463357482b0ef7f |