https://github.com/kevinheavey/anchorpy
The Python Anchor client.
https://github.com/kevinheavey/anchorpy
anchor blockchain defi nft python solana web3
Last synced: 24 days ago
JSON representation
The Python Anchor client.
- Host: GitHub
- URL: https://github.com/kevinheavey/anchorpy
- Owner: kevinheavey
- License: mit
- Created: 2021-08-07T11:44:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-26T10:18:10.000Z (about 1 month ago)
- Last Synced: 2025-04-02T03:14:03.971Z (about 1 month ago)
- Topics: anchor, blockchain, defi, nft, python, solana, web3
- Language: Python
- Homepage: https://kevinheavey.github.io/anchorpy/
- Size: 3.87 MB
- Stars: 259
- Watchers: 5
- Forks: 67
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome - kevinheavey/anchorpy - The Python Anchor client. (Python)
README
# AnchorPy
![]()
---
[](https://discord.gg/sxy4zxBckh)
AnchorPy is the gateway to interacting with [Anchor](https://github.com/project-serum/anchor) programs in Python.
It provides:- A static client generator
- A dynamic client similar to `anchor-ts`
- A Pytest plugin
- A CLI with various utilities for Anchor Python development.Read the [Documentation](https://kevinheavey.github.io/anchorpy/).
## Installation (requires Python >=3.9)
```sh
pip install anchorpy[cli, pytest]```
Or, if you're not using the CLI or Pytest plugin features of AnchorPy you can just run `pip install anchorpy`.### Development Setup
If you want to contribute to AnchorPy, follow these steps to get set up:
1. Install [uv](https://docs.astral.sh/uv/getting-started/installation/)
2. Run the unit tests:
```sh
uv run --all-extras pytest tests/unit```