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.1.tar.gz
(12.3 kB
view hashes)
Built Distribution
pypechain-0.0.1-py3-none-any.whl
(16.4 kB
view hashes)
Close
Hashes for pypechain-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c2a93d505cc59cbcbc6f183e9f32aaf67d9ef1f3c9016ac38943f9ce0fda457 |
|
MD5 | 6334a9fcf58c74d14271e81ff18fddf7 |
|
BLAKE2b-256 | 766d943a57e0248a05b000579544b5a25c06319413c2a750af179a455348f537 |