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 stellar-sdk
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
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stellar-sdk-1.0.0.tar.gz.
File metadata
- Download URL: stellar-sdk-1.0.0.tar.gz
- Upload date:
- Size: 107.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c4433c41a4883b05576cab89d68b4138c995fdb93db09a3da53092afaa18151
|
|
| MD5 |
a283cf3ae499d5fe7ba19bfc816f3a22
|
|
| BLAKE2b-256 |
1bec47ace93f96bf6773caa584a2b454348e37732de67cf2bb340439b8b723c1
|
File details
Details for the file stellar_sdk-1.0.0-py2.py3-none-any.whl.
File metadata
- Download URL: stellar_sdk-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 116.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43d2e63a6a56551877fb9e47e1a645a5afdbfa6fc65c85fddbdc10490a281280
|
|
| MD5 |
ca333b908412b444c1381a5ba6050483
|
|
| BLAKE2b-256 |
bfcc24d70ea3f7fb4c0068f6217721a08c711e4e789b75a1776eb7f9cddba0fa
|