stellar-sdk
The Python Stellar SDK library provides APIs to build transactions and connect to Horizon and Stellar RPC server.
Decision gist · record as of 2026-08-14
Yes. Stellar SDK is actively maintained (last commit 2026-07-27), has no known vulnerabilities, and provides a complete, well-documented interface to the Stellar blockchain. Low install friction, permissive licensing, and broad Python version support make it a solid choice for any Stellar-based Python project. Install with confidence if you need to interact with Stellar.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or higher; PyPy 3.11 is also supported.
- Optional async support and Shamir backup require additional dependencies installed via extras.
- Low friction install with a pure-Python wheel.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions—suitable for most projects that can comply with attribution and license disclosure requirements.
last release 2026-07-04 (41 days) · last repo commit 2026-07-27 · 368 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 179,787 downloads/mo, #10,162 on PyPI
Alternatives
Verify before relying
pip install stellar-sdk
from stellar_sdk import Keypair, Server, TransactionBuilder, Network, Asset
alice_keypair = Keypair.from_secret("SBFZCHU5645DOKRWYBXVOXY2ELGJKFRX6VGGPRYUWHQ7PMXXJNDZFMKD")
server = Server("https://horizon-testnet.stellar.org")
account = server.load_account(alice_keypair.public_key)
transaction = TransactionBuilder(
source_account=account,
network_passphrase=Network.TESTNET_NETWORK_PASSPHRASE,
base_fee=100
).append_payment_op("GA7YNBW5CBTJZ3ZZOWX3ZNBKD6OE7A7IHUQVWMY62W2ZBG2SGZVOOPVH", Asset.native(), "10.25").build()
transaction.sign(alice_keypair)
response = server.submit_transaction(transaction)- Whether the package's type hints (Typing :: Typed classifier) cover all public APIs or only partial coverage
- Performance characteristics when handling large transaction batches or high-frequency network queries
- Compatibility details with Stellar RPC server versions beyond what the description states
What it is and what it does
Stellar SDK is a Python library for building applications on the Stellar blockchain network. It provides networking APIs to communicate with Horizon (Stellar's data API) and Stellar RPC servers, along with tools for constructing, signing, and submitting transactions. The package handles account management, transaction building with various operations (payments, trades, etc.), and network history queries.
The library is designed for developers building Stellar apps in Python and supports modern Python versions (3.10+) and PyPy 3.11. It depends on established packages like pydantic for validation, pynacl for cryptographic signing, requests for HTTP communication, and xdrlib3 for Stellar's data serialization format. Optional async support and Shamir backup functionality are available through extras.
Use it for
- Build and submit payment transactions on the Stellar network from a Python application
- Query account balances, transaction history, and network state via Horizon API
- Create and manage Stellar keypairs and sign transactions for custody or trading workflows
- Integrate Stellar blockchain functionality into a Python backend service or trading bot
- Call Stellar Soroban smart contracts using generated Python bindings
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Stellar SDK is actively maintained (last commit 2026-07-27), has no known vulnerabilities, and provides a complete, well-documented interface to the Stellar blockchain. Low install friction, permissive licensing, and broad Python version support make it a solid choice for any Stellar-based Python project. Install with confidence if you need to interact with Stellar.
Install
stellar-sdk on PyPI
Before you install
Low friction install with a pure-Python wheel. Actively maintained with recent releases; last commit 2026-07-27. Requires Python 3.10+ or PyPy 3.11. Eight runtime dependencies are all established packages (pydantic, requests, pynacl, etc.), making the dependency tree straightforward.
Requires Python 3.10 or higher; PyPy 3.11 is also supported. Optional async support and Shamir backup require additional dependencies installed via extras.
License in practice
Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions—suitable for most projects that can comply with attribution and license disclosure requirements.
Quickstart
pip install stellar-sdk
from stellar_sdk import Keypair, Server, TransactionBuilder, Network, Asset
alice_keypair = Keypair.from_secret("SBFZCHU5645DOKRWYBXVOXY2ELGJKFRX6VGGPRYUWHQ7PMXXJNDZFMKD")
server = Server("https://horizon-testnet.stellar.org")
account = server.load_account(alice_keypair.public_key)
transaction = TransactionBuilder(
source_account=account,
network_passphrase=Network.TESTNET_NETWORK_PASSPHRASE,
base_fee=100
).append_payment_op("GA7YNBW5CBTJZ3ZZOWX3ZNBKD6OE7A7IHUQVWMY62W2ZBG2SGZVOOPVH", Asset.native(), "10.25").build()
transaction.sign(alice_keypair)
response = server.submit_transaction(transaction)
Verify before relying
- Whether the package's type hints (Typing :: Typed classifier) cover all public APIs or only partial coverage
- Performance characteristics when handling large transaction batches or high-frequency network queries
- Compatibility details with Stellar RPC server versions beyond what the description states
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <4.0,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 8 packagesmnemonicpydanticpynaclrequestsrequests-ssetomltyping-extensionsxdrlib3 |
| Maintenance | Actively maintained 41 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 179,787 / month, #10,162 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: stellar_sdk-15.0.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 › “stellar blockchain python”
- stellar-sdkStellar SDK provides Python APIs to build and sign transactions,…
- chia-rsProvides Python bindings to Rust crates for working with the Chia…
- tonsdkLow-level Python library for interacting with the TON blockchain,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also web3 · solana · injective-py · cdp-sdk · etherscan-python · cosmpy · planetary-computer · aptos-sdk · hyperliquid-python-sdk · dune-client