Ape Framework: Build and explore on-chain with Python
Project description
Overview
Ape Framework is an easy-to-use Web3 development tool. Users can compile, test, and interact with smart contracts all in one command line session. With our modular plugin system, Ape supports multiple contract languages and chains.
Ape is built by ApeWorX LTD.
Join our ApeWorX Discord server to stay up to date on new releases, plugins, and tutorials.
If you want to get started now, see the Quickstart section.
Documentation
Read our technical documentation to get a deeper understanding of our open source Framework.
Read our academic platform which will help you master Ape Framework with tutorials and challenges.
Prerequisite
In the latest release, Ape requires:
- Linux or macOS
- Python 3.10 up to 3.13
- Windows: Install Windows Subsystem Linux (WSL)
Check your python version in a terminal with python3 --version.
Installation
There are three ways to install ape: pipx, pip, or Docker.
Considerations for Installing
-
If using
pip, we advise using the most up-to-date version ofpipto increase the chance of a successful installation.- See issue https://github.com/ApeWorX/ape/issues/1558.
- To upgrade
pipfrom the command line, run:pip install --upgrade pip.
-
We advise installing in a virtualenv or venv to avoid interfering with OS-level site packages.
-
We advise installing
apewith recommended pluginspip install eth-ape'[recommended-plugins]'. -
We advise for macOS users to install virtual env via homebrew.
Installing with pipx or pip
-
Install
pipxvia their installation instructions orpipvia their installation instructions. -
Install
apeviapipx install eth-apeorpip install eth-ape.
Installing with docker
Ape can also run in a docker container.
You can pull our images from ghcr.
This image is built using our recommended-plugins extra, so it is a great starting point for running ape in a containerized environment.
We also have a slim docker image that is built without any installed plugins.
This image is meant for production support and must be further configured if any plugins are in use.
You can pull the image:
$ docker pull ghcr.io/apeworx/ape:latest # installs with recommended-plugins
or pull the slim if you have specific needs that you'd like to build from:
$ docker pull ghcr.io/apeworx/ape:latest-slim # installs ape with required packages
or build the image locally from source:
$ docker build -t ape:latest-slim -f Dockerfile.slim .
$ docker build -t ape:latest .
An example of running a command from the container would be:
docker run \
--volume $HOME/.ape:/home/harambe/.ape \
--volume $HOME/.vvm:/home/harambe/.vvm \
--volume $HOME/.solcx:/home/harambe/.solcx \
--volume $PWD:/home/harambe/project \
apeworx/ape compile
Note: The above command requires the full install which includes
recommended-pluginsinstallation extra.
Quickstart
After you have installed Ape, run ape --version to verify the installation was successful.
You can interact with Ape using the command line or the Ape console.
See the following user-guides for more in-depth tutorials:
Plugin System
Ape's modular plugin system allows users to have an interoperable experience with Web3.
-
Learn about installing plugins from following this installing user guide.
-
Learn more about developing your own plugins from this developing user guide.
If a plugin does not originate from the [ApeWorX GitHub Organization](https://github.com/ApeWorX?q=ape&type=all), you will get a warning about installing 3rd-party plugins.
Install 3rd party plugins at your own risk.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eth_ape-0.8.47.tar.gz.
File metadata
- Download URL: eth_ape-0.8.47.tar.gz
- Upload date:
- Size: 725.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4a78ebf6aa4304a8cd66bd4b581102d4a6e20e1e76ee7002a2175a944ae9042
|
|
| MD5 |
cddd74adb135f0ea207295f70127d7f4
|
|
| BLAKE2b-256 |
67d000aecf648ae7f1e8f8599f97c65986c8b0f1481a6062ab5edfa33f523b6b
|
Provenance
The following attestation bundles were made for eth_ape-0.8.47.tar.gz:
Publisher:
publish.yaml on ApeWorX/ape
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eth_ape-0.8.47.tar.gz -
Subject digest:
e4a78ebf6aa4304a8cd66bd4b581102d4a6e20e1e76ee7002a2175a944ae9042 - Sigstore transparency entry: 830113177
- Sigstore integration time:
-
Permalink:
ApeWorX/ape@db4baa72c2041605a578eb07404f862c7892db84 -
Branch / Tag:
refs/tags/v0.8.47 - Owner: https://github.com/ApeWorX
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@db4baa72c2041605a578eb07404f862c7892db84 -
Trigger Event:
release
-
Statement type:
File details
Details for the file eth_ape-0.8.47-py3-none-any.whl.
File metadata
- Download URL: eth_ape-0.8.47-py3-none-any.whl
- Upload date:
- Size: 423.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9179917bbb2cf3bb31ab5d18bc6000a0cb8d5472167c8d320d404e5663153826
|
|
| MD5 |
66f286fccb034a8a9ffb3784f2527ccc
|
|
| BLAKE2b-256 |
bd02752680bfa29f39b6f0e1b1d5f929abfd121bfa29def3d6f1df945ecf864a
|
Provenance
The following attestation bundles were made for eth_ape-0.8.47-py3-none-any.whl:
Publisher:
publish.yaml on ApeWorX/ape
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eth_ape-0.8.47-py3-none-any.whl -
Subject digest:
9179917bbb2cf3bb31ab5d18bc6000a0cb8d5472167c8d320d404e5663153826 - Sigstore transparency entry: 830113182
- Sigstore integration time:
-
Permalink:
ApeWorX/ape@db4baa72c2041605a578eb07404f862c7892db84 -
Branch / Tag:
refs/tags/v0.8.47 - Owner: https://github.com/ApeWorX
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@db4baa72c2041605a578eb07404f862c7892db84 -
Trigger Event:
release
-
Statement type: