Skip to main content

Code for managing blockchain transactions and accounts using stellar-base in python. Allows full functionality interfacing with the Horizon front end. Visit for more information.

Project description

PyPI Travis (.org) Read the Docs Codecov

py-stellar-sdk is a Python library for communicating with a Stellar Horizon server. It is used for building Stellar apps on Python.

It provides:

  • a networking layer API for Horizon endpoints.
  • facilities for building and signing transactions, for communicating with a Stellar Horizon instance, and for submitting transactions or querying network history.


Install from pypi:

pip install -U stellar-sdk

Install from latest source code(may be unstable):

pip install git+git://

A Simple Example

# Alice pay 10.25 XLM to Bob
from stellar_base.builder import Builder


builder = Builder(secret=alice_secret)
builder.add_text_memo("Hello, Stellar!").append_payment_op(
    destination=bob_address, amount='10.25', asset_code='XLM')
response = builder.submit()

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
stellar_sdk-1.2.2-py2.py3-none-any.whl (129.1 kB) Copy SHA256 hash SHA256 Wheel py2.py3
stellar-sdk-1.2.2.tar.gz (120.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page