Skip to main content

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


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.0.tar.gz (10.6 kB view hashes)

Uploaded Source

Built Distribution

pypechain-0.0.0-py3-none-any.whl (11.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page