Skip to content
A python version of stellar-base library.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs docs: Adapt to Protocol v11 May 6, 2019
examples chore: fix the incorrect url in the example. Jun 28, 2019
stellar_base Merge pull request #201 from StellarCN/issue-200 Jun 27, 2019
tests test: Adapt to Protocol v11 May 5, 2019
.codeclimate.yml enable more checks on code climate Jun 19, 2018
.coveragerc
.gitattributes Add initial sphinx setup. Jan 20, 2018
.gitignore
.travis.yml ci: upload assets to GitHub release page Jun 9, 2019
CHANGELOG.md version 1.2.2 Jun 20, 2019
LICENSE Initial commit Sep 25, 2015
MANIFEST.in fix travis build package Oct 24, 2018
Makefile ci: upload assets to GitHub release page Jun 9, 2019
Pipfile deps: requests, six and toml Apr 17, 2019
Pipfile.lock deps: bump urllib3 from 1.24.1 to 1.24.2 Apr 20, 2019
README.rst add Docker container link Apr 17, 2019
codecov.yml add codecov Jun 8, 2018
requirements.txt deps: requests, six and toml Apr 17, 2019
setup.cfg universal bdist_wheel Oct 25, 2018
setup.py version 1.0.0 🎉 Oct 31, 2018

README.rst

py-stellar-base

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.

Installing

Install from pypi:

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

Links

Thank you to all the people who have already contributed to py-stellar-base!

You can’t perform that action at this time.