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
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:
pip install -U kin-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
Examples: https://github.com/StellarCN/py-stellar-base/tree/master/examples
Releases: https://pypi.org/project/stellar-sdk/
Issue tracker: https://github.com/StellarCN/py-stellar-base/issues
License: Apache License 2.0
Thank you to all the people who have already contributed to py-stellar-base!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for kin_base-1.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a8daa92e1d4ffe0c242ad3df41610bfb7dd9061a4acc24c4c264651de79408a |
|
MD5 | 8cd3fc3ed679a88fa5a2d52880886d07 |
|
BLAKE2b-256 | 9236a2a9c1455dfb209c3d54f6db3d0bb3bc909b7fabfeb35b4aced824856e6f |