Skip to main content

The Python Anchor client with support for new Anchor IDL formats (fork of anchorpy by kevinheavey)

Project description

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

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

anchorpy3-0.3.0.tar.gz (707.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anchorpy3-0.3.0-py3-none-any.whl (69.0 kB view details)

Uploaded Python 3

File details

Details for the file anchorpy3-0.3.0.tar.gz.

File metadata

  • Download URL: anchorpy3-0.3.0.tar.gz
  • Upload date:
  • Size: 707.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for anchorpy3-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9afbb644685df87a6713b5993a25c72d01e846cda1ab388e6de865b172ab9a7f
MD5 9ef6af1a3168574ff37a5262549ce78b
BLAKE2b-256 b0c4723e21d170aecaef4879a670c695f20336099b9944c4037119711d99ca25

See more details on using hashes here.

File details

Details for the file anchorpy3-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: anchorpy3-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 69.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for anchorpy3-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e1e5dfef2e2965c83e952a2a7cacfd3b1ac24b086ba0eeb07cff9b70e2bf87b
MD5 6400c014802fc7a66a97a1d4de0c0d4d
BLAKE2b-256 c0acd30d2a3a61d1fc7ce7bc81156346906163dd8acdaabfd0bdb6e84184348f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page