Inspired by python's legendary 'requests' library I have been working on python library for stellar API.
Following are some examples of typical usage of this library:
stellar.account('GBS4..6S3K').fetch()
Account(id=GAEE..IB4V..,seq=28515937145585674,balances=[Balance(9855.9998800 XLM)])
stellar.account('GBS4..6S3K').operations().fetch(limit=1).entries()
[Operation(id=28515937145589761,account=GBS4..6S3K,type=create_account)]
with stellar.new_transaction('SEED..5KEE', memo='test-pay') as trx:
... trx.pay(account='GBS4..6S3K', amount='42.01')
... #remove existing offer for buying BTC
... trx.remove_offer(offer_id=12891, sell_asset='native', buy_asset=('BTC', 'GADE..ED87'))
... #add new offer to buy BTC
... trx.add_offer(sell_amount='10.00', sell_asset='native', buy_asset=('BTC', 'GADE..ED87'), price=(1, 10000))
Please see Github repo of the project at https://github.com/hard-codr/sirius
I tried to explain the motivation for creating this library in more details on Github repo.
Comments & feedback are always welcome.