OpenViSTAI · Agents · Blockchain · Crypto
Menu
Developer Tools

Anchorpy

Anchorpy is a Python library for interacting with Anchor programs, with static and dynamic clients, a Pytest plugin and command-line utilities.

Independent OpenViST project profile, based on linked sources.

Anchorpy — OpenViST project profile in Developer Tools.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use Anchorpy when a Python project needs to interact with Anchor programs or when its client-generation, testing or command-line tools fit the development workflow.

Who it is for

  • Python developers working with Anchor programs
  • Teams testing Python projects that use Anchor programs

Documented uses

  • Generate a static Python client for an Anchor program
  • Call an Anchor program from Python using the dynamic client
  • Use a Pytest plugin when testing Python projects with Anchor programs
  • Use CLI utilities for Anchor Python development
Before you choose

Requirements & limits

The README requires Python 3.9 or later and documents installation through pip. The library can be installed alone; CLI and Pytest features are included as optional extras.

  • Static client generation and a dynamic client are both available.
  • The Pytest plugin and CLI are optional installation extras.
  • The documented runtime prerequisite is Python 3.9 or later.
  • The repository specifies the MIT license.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Set up AnchorPy for development and run unit tests

Prepare an AnchorPy contribution environment and run its unit tests.

Before you start

  • uv installed

Steps

  1. Install uv using its installation instructions.

  2. Run the command below.

    Documented command
    uv run --all-extras pytest tests/unit

Expected outcome

The documented unit-test command is run with all extras enabled.

Guide limitations

  • The source does not specify expected test results or additional development setup steps.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
14 October 2026
Original website title
kevinheavey/anchorpy · Official homepage title · retained in its source language