$npx skillfedfor your agent

anchorpy

The Python Anchor client.

With conditionsPyPI InternetReleased Mar 2025169.0K downloads / moPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — anchorpy-0.21.0-py3-none-any.whl
v0.21.0 · released 2025-03-26 · Python ~=3.9 · 9 runtime deps: anchorpy-core, based58, borsh-construct, construct-typing, pyheck, solana, solders, toml

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

LicenseNot declared unclear
Python supportSupports the current Python release ~=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
9 packages
anchorpy-corebased58borsh-constructconstruct-typingpyhecksolanasolderstomltoolz
MaintenanceAging 506 days since the last release
Last repo commit
First released
Downloads168,980 / month, #10,430 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: anchorpy-0.21.0-py3-none-any.whl

Tags

Capabilities
solana anchor python clientanchor program interaction pythonsolana blockchain client libraryanchor idl code generationsolana smart contract client
Topics
solanablockchaincode-generation

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 Worth it
PyPI · Internet · released Aug 2026

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.

permissive licensepure Python · 3.10+
1.5Bdownloads / mo
aiobotocore Worth it
PyPI · Internet · released Aug 2026

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.

Apache-2.0pure Python · 3.10+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
filelock Worth it
PyPI · Libraries · released Aug 2026

Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.

MITpure Python · 3.10+
717.1Mdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
googleapis-common-protos Worth it
PyPI · Internet · released Aug 2026

Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.

Apache-2.0pure Python · 3.10+
513.7Mdownloads / mo

See also anchorpy-core · solana · cosmpy · web3 · tronpy · cdp-sdk · aptos-sdk · injective-py · chia-puzzles-py · eth-brownie