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.7.tar.gz
(21.0 kB
view hashes)
Built Distribution
pypechain-0.0.7-py3-none-any.whl
(32.2 kB
view hashes)
Close
Hashes for pypechain-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 229695dbf60c9b6c530c2dde5b6f0c2d933d2a7826db3387006798df83145561 |
|
MD5 | a1ff5231dd50384617b9668a2f3f5ca5 |
|
BLAKE2b-256 | 5f9e4fbf300a6c3bf6efe22439b4b53b5dd6d3d87a9ac831ef73c1ea848a0581 |