finds.dev

michaelhly/solana-py

Solana Python SDK

View on GitHubHomepage ↗

★ 1,433PythonMITupdated Jun 2026

// the take

Python SDK for interacting with the Solana blockchain — sends transactions, queries RPC nodes, works with SPL tokens. It's a thin wrapper over the JSON RPC API, deliberately offloading the heavy cryptographic primitives to the `solders` package (Rust bindings). For anyone building Solana tooling or bots in Python rather than JS/Rust.

Sync, async, and WebSocket clients are all first-class — you can use whichever fits your architecture without workarounds. The split between `solana-py` (RPC layer) and `solders` (types and crypto) is architecturally clean; the Rust bindings mean you're not doing keypair operations in pure Python. SPL token support is built in, covering the common operations you'd actually need. Actively maintained — last push two days ago, CI is green, and the cookbook docs cover real use cases rather than toy examples.

The `solders` dependency is non-obvious friction — newcomers will hit import errors or type confusion before they understand the split, and the README buries the explanation. No support for Versioned Transactions (v0) or Address Lookup Tables in the Python layer, which matters if you're interacting with modern programs that use them. The WebSocket API is awkward: you call `recv()` once to get the subscription ID and again for actual messages, which is easy to get wrong and not well-documented. Integration tests require a local validator via Docker, which is the right call, but there's no guidance on what to do when the test validator drifts from mainnet behavior.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
1,433
Forks
344
Language
Python
License
MIT
Last commit
10 Jun 2026

// nearby

If solana-py isn't quite it.

All repos →