Skip to main content

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

Project description

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.

Installing

Install from pypi, there are two packages here, please choose one of them:

  • The package is built automatically by Travis-CI. PyPI

pip install -U stellar-sdk
  • The package is maintained by antb123. PyPI

pip install -U stellar-base

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

Project details


Release history Release notifications | RSS feed

This version

1.0.3

Download files

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

Source Distribution

stellar-sdk-1.0.3.tar.gz (113.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stellar_sdk-1.0.3-py2.py3-none-any.whl (120.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file stellar-sdk-1.0.3.tar.gz.

File metadata

  • Download URL: stellar-sdk-1.0.3.tar.gz
  • Upload date:
  • Size: 113.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.7.2 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.5.6

File hashes

Hashes for stellar-sdk-1.0.3.tar.gz
Algorithm Hash digest
SHA256 23f84cc4b98100fb0d1a55206a179cbd70f2f79f276fb6409359d8498e376d13
MD5 0a6ceeec11953758c6ad7b8c014f7fb7
BLAKE2b-256 7147c84f9d6b2d897fdb71914d6d2d773ac496272f5a5851ef93d7208d06e56a

See more details on using hashes here.

File details

Details for the file stellar_sdk-1.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: stellar_sdk-1.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 120.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.7.2 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.5.6

File hashes

Hashes for stellar_sdk-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 eb2352cd0f19fb51c71258a56d63fd93064cbe8e90dd067f421be1889e3ac518
MD5 7eb3b19e7f1d7a61e7a2efa501c8712f
BLAKE2b-256 58de1b2d3cbe132be637e6f1c346bfb84e23a24ab4971228504db80fbb4f1794

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page