The Python Anchor client with support for new Anchor IDL formats (fork of anchorpy by kevinheavey)
Project description
AnchorPy3
Note: This is a fork of kevinheavey/anchorpy with added support for new Anchor IDL formats (v0.1.0 spec). All credit for the original implementation goes to kevinheavey.
What's New in AnchorPy3
- Full support for new Anchor IDL format (v0.1.0 spec) with precomputed discriminators
- 100% backward compatibility with legacy IDL format
- Automatic format detection - works seamlessly with both old and new IDL files
- Decoupled architecture - anchorpy-core is now a separate package
- Updated for Python 3.10+
Overview
AnchorPy is the gateway to interacting with 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.
Installation (requires Python >=3.10)
Install from PyPI
pip install anchorpy3[cli,pytest]
Or, if you're not using the CLI or Pytest plugin features:
pip install anchorpy3
Install from GitHub (Latest)
pip install git+https://github.com/kakagri/anchorpy.git
Note: Installing from GitHub requires the Rust toolchain (for building anchorpy-core). See Rust installation.
Development Setup
If you want to contribute to AnchorPy, follow these steps to get set up:
- Install uv
- Run the unit tests:
uv run --all-extras pytest tests/unit
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
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 anchorpy3-0.3.5.tar.gz.
File metadata
- Download URL: anchorpy3-0.3.5.tar.gz
- Upload date:
- Size: 658.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95358acf904a3c49afeb4fed3349cc4c076048fa0a3111594545ba7a17e73edd
|
|
| MD5 |
a7a58683b093e90fa52cce8fd652a6eb
|
|
| BLAKE2b-256 |
60fa5b0a564077701831db42aacc4606d275c08dcdcb2e385220eb91cb4765e7
|
File details
Details for the file anchorpy3-0.3.5-py3-none-any.whl.
File metadata
- Download URL: anchorpy3-0.3.5-py3-none-any.whl
- Upload date:
- Size: 68.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bf7ff11dbcef991aa5c737bcc8b65905aa390c22034cf582eeba577c7a05b18
|
|
| MD5 |
e6d75a84399876b0192ec25736bb8c48
|
|
| BLAKE2b-256 |
16575e9fd0024a0eca09ede80bcf5e86df93f3906c476d2f41e7e6d89ff4bae7
|