Giter Site home page Giter Site logo

macingo / py-stellar-base Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stellarcn/py-stellar-base

0.0 1.0 0.0 619 KB

A python version of stellar-base library.

Home Page: https://stellar-base.readthedocs.io

License: Apache License 2.0

Makefile 0.13% Python 93.21% Logos 0.32% RPC 6.33%

py-stellar-base's Introduction

py-stellar-base

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

Links

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

py-stellar-base's People

Contributors

overcat avatar manran avatar theaeolianmachine avatar akuukis avatar aliciawyy avatar tangshuran avatar nelisky avatar bartekn avatar juehai avatar patstoms avatar cryptomental avatar hongxuchen avatar semooze avatar jobforp avatar bolshoy avatar fracek avatar reverbel avatar jimbobhickville avatar synesso avatar mattwmaster58 avatar nikhilsaraf avatar robolivable avatar zallarak avatar gozillatiamo avatar siko avatar

Watchers

mac avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.