anchorpy
The Python Anchor client.
Decision gist · record as of 2026-08-14
Yes, if you are building on Solana and need a Python client for Anchor programs. The package has low install friction and no known vulnerabilities. However, the 506-day gap since the last release and unclear license status warrant verification before committing to production use. Check the repository for the actual license and confirm ongoing maintenance fits your project's support expectations.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >=3.9.
- Solana network connectivity and a valid Anchor IDL (Interface Definition Language) file are needed to interact with programs.
- Low install friction with a pure-Python wheel.
License · maintenance · safety
(unclear) — License treatment is unclear; no SPDX identifier or raw license text is recorded. Verify the actual license terms in the repository before adopting this package in a commercial or restricted-license context.
last release 2025-03-26 (506 days) · last repo commit 2025-03-26 · 278 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 168,980 downloads/mo, #10,430 on PyPI
Alternatives
Verify before relying
pip install anchorpy
from anchorpy import Program
from solders.keypair import Keypair
# Load and interact with an Anchor program
program = Program.at(program_id, provider)- Whether the package is actively maintained or in maintenance-only mode given the 506-day gap since last release.
- The actual license under which anchorpy is distributed (SPDX and raw license are both null in metadata).
- Whether the 9 runtime dependencies (including solana, solders, borsh-construct) are all actively maintained and compatible with current Solana tooling.
What it is and what it does
AnchorPy bridges Python and Solana's Anchor framework, allowing developers to generate and use type-safe clients for Anchor programs without writing boilerplate. It reads an Anchor program's IDL (Interface Definition Language) and generates either static Python classes or provides a dynamic client interface, similar to the TypeScript anchor-ts library.
The package includes a Pytest plugin for testing Anchor programs in Python, a CLI with development utilities, and integrates with Solana's ecosystem libraries (solders, borsh-construct, based58). It targets developers building on Solana who prefer Python over TypeScript or Rust, or who need Python-based tooling for program interaction and testing.
Use it for
- Generate type-safe Python clients from Anchor IDL files to interact with deployed Solana programs.
- Write integration tests for Anchor programs using the built-in Pytest plugin.
- Automate Solana program interactions in Python scripts or backend services without manual RPC calls.
- Build Python-based tooling and utilities for Anchor program development and deployment.
- Interact with Solana smart contracts from data analysis or machine-learning pipelines.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building on Solana and need a Python client for Anchor programs.
The package has low install friction and no known vulnerabilities. However, the 506-day gap since the last release and unclear license status warrant verification before committing to production use. Check the repository for the actual license and confirm ongoing maintenance fits your project's support expectations.
Install
anchorpy on PyPI
Before you install
Low install friction with a pure-Python wheel. Maintenance is aging—last release was 506 days ago—but the repository remains active with a recent commit on 2025-03-26 and moderate community interest (278 stars).
Requires Python >=3.9. Solana network connectivity and a valid Anchor IDL (Interface Definition Language) file are needed to interact with programs.
License in practice
License treatment is unclear; no SPDX identifier or raw license text is recorded. Verify the actual license terms in the repository before adopting this package in a commercial or restricted-license context.
Quickstart
pip install anchorpy
from anchorpy import Program
from solders.keypair import Keypair
# Load and interact with an Anchor program
program = Program.at(program_id, provider)
Verify before relying
- Whether the package is actively maintained or in maintenance-only mode given the 506-day gap since last release.
- The actual license under which anchorpy is distributed (SPDX and raw license are both null in metadata).
- Whether the 9 runtime dependencies (including solana, solders, borsh-construct) are all actively maintained and compatible with current Solana tooling.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release ~=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 9 packagesanchorpy-corebased58borsh-constructconstruct-typingpyhecksolanasolderstomltoolz |
| Maintenance | Aging 506 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 168,980 / month, #10,430 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: anchorpy-0.21.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “solana anchor python client”
- anchorpyAnchorPy is a Python client library for interacting with Anchor…
- anchorpy-coreProvides Python bindings to Anchor Rust code, enabling Python…
- solanaSolana.py is a Python SDK for building transactions and interacting…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also anchorpy-core · solana · cosmpy · web3 · tronpy · cdp-sdk · aptos-sdk · injective-py · chia-puzzles-py · eth-brownie