Ape is a smart contract development and testing framework for Ethereum-based blockchains, written in Python. It provides tools for compiling, deploying, testing, and interacting with smart contracts. Current version is 0.8.50, with a release cadence of several releases per month.
pip install eth-apeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic deployment and interaction using Ape's project and accounts.
Use `accounts['0x...']` instead of `accounts.load('0x...')`.Use `from ape import Contract`.
Use `ape build` instead of `ape compile`.
Use `accounts.load('alias')` interactively or pass password via environment variable `APE_ACCOUNT_PASSWORD`.Use `from ape import Contract` instead.
Ensure you are using `from ape import accounts` and not `from ape.accounts import accounts`.
Unlock an account with `accounts.load('alias')` or set environment variable `APE_ACCOUNT_PRIVATE_KEY`.Change to a directory containing an `ape-config.yaml` file or initialize a project with `ape init`.