Skip to main content

py-stellar-base

PyPI Travis (.org) Read the Docs Codecov

py-stellar-base 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.

Installing

Install from pypi:

pip install -U stellar_base
pip install -U stellar-sdk

Install from latest source code(may be unstable):

pip install git+git://github.com/StellarCN/py-stellar-base

A Simple Example

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

alice_secret = 'SCB6JIZUC3RDHLRGFRTISOUYATKEE63EP7MCHNZNXQMQGZSLZ5CNRTKK'
bob_address = 'GA7YNBW5CBTJZ3ZZOWX3ZNBKD6OE7A7IHUQVWMY62W2ZBG2SGZVOOPVH'

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

Document

Metadata

Release files for stellar-base 1.1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stellar-base 1.1.2.0
File Size Uploaded
stellar-base-1.1.2.0.tar.gz 116.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stellar-base 1.1.2.0
File Interpreter ABI Platform
stellar_base-1.1.2.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 240.7 kB

Release files / stellar-base-1.1.2.0.tar.gz

Download URL stellar-base-1.1.2.0.tar.gz
Size 116.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bf5e2334b8da570099f9da00462580d2ff01bdeccf723fad5ddc75a8822f79e4
BLAKE2b-256 checksum
How to use checksums
8a2bd3d0c7090049a544c403d13764773d69d57c2869c9d3aadca018b826278b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.10.0 pkginfo/1.2.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.7

Release files / stellar_base-1.1.2.0-py2.py3-none-any.whl

Download URL stellar_base-1.1.2.0-py2.py3-none-any.whl
Size 124.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
62ed290e0db0084b8e396da5a9bcf07f069826ae2dc416f357e00ad954e7c3a8
BLAKE2b-256 checksum
How to use checksums
051a4c82333a024b9664d0dd9057a6e6f44e0a1ad18bfb6b9bacfa4080163f6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.10.0 pkginfo/1.2.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.7

Release history Release notifications | RSS feed

This release

1.1.2.0 This release

2 release files

0.1.9.2

1 release file

0.1.8.1

1 release file

0.1.7.3

1 release file

0.1.5

1 release file

0.0.5

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page