Skip to main content

AnchorPy3


PyPI Python Version License: MIT

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:

  1. Install uv
  2. Run the unit tests:
uv run --all-extras pytest tests/unit

Metadata

Release files for anchorpy3 0.4.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anchorpy3 0.4.5
File Size Uploaded Provenance Actions
anchorpy3-0.4.5.tar.gz 666.4 kB Without provenance Details for anchorpy3-0.4.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for anchorpy3 0.4.5
File Interpreter ABI Platform Actions
anchorpy3-0.4.5-py3-none-any.whl Python 3 none any Details for anchorpy3-0.4.5-py3-none-any.whl

Total release size: 743.5 kB

Release files / anchorpy3-0.4.5.tar.gz

Download URL anchorpy3-0.4.5.tar.gz
Size 666.4 kB
Tags Source
SHA-256 checksum
How to use checksums
138770c00a5a6717438b5a97639fd23b598f498c7a8762e087883cfdea974e67
BLAKE2b-256 checksum
How to use checksums
01fe342e9b719f07653988ee731018caf0510b8b93c71b0349831ce54afbe869
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.9

Release files / anchorpy3-0.4.5-py3-none-any.whl

Download URL anchorpy3-0.4.5-py3-none-any.whl
Size 77.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0aa52c9b26e6ab98f0b573d5c977107b49168296d27093cc168a314ad047a459
BLAKE2b-256 checksum
How to use checksums
75a5cf90c7e74131db9fc253a2d39854b6aadc5c5be3a5041559a5e433e949bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.9

Security for anchorpy3 0.4.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page