All Projects → arsenlosenko → Python Ripple Lib

arsenlosenko / Python Ripple Lib

Licence: mit
Python client for the Ripple API

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Python Ripple Lib

Mjson
C/C++ JSON parser, emitter, JSON-RPC engine for embedded systems
Stars: ✭ 136 (+491.3%)
Mutual labels:  json-rpc, json
Autoserver
Create a full-featured REST/GraphQL API from a configuration file
Stars: ✭ 188 (+717.39%)
Mutual labels:  json-rpc, json
Jsonrpc
The jsonrpc package helps implement of JSON-RPC 2.0
Stars: ✭ 143 (+521.74%)
Mutual labels:  json-rpc, json
Getty
a netty like asynchronous network I/O library based on tcp/udp/websocket; a bidirectional RPC framework based on JSON/Protobuf; a microservice framework based on zookeeper/etcd
Stars: ✭ 532 (+2213.04%)
Mutual labels:  json-rpc, json
Co
Art of C++. Flag, logging, unit-test, json, go-style coroutine and more.
Stars: ✭ 2,264 (+9743.48%)
Mutual labels:  json-rpc, json
Libjson Rpc Cpp
C++ framework for json-rpc (json remote procedure call)
Stars: ✭ 653 (+2739.13%)
Mutual labels:  json-rpc, json
Json to dart
Library that generates dart classes from json strings
Stars: ✭ 836 (+3534.78%)
Mutual labels:  json
Movement
Movement is an easier, simpler way to explore and use NIEM. Want to join the Movement and contribute to it? Start here.
Stars: ✭ 19 (-17.39%)
Mutual labels:  json
Nanojson
Single C++ header file only json reader/writer
Stars: ✭ 6 (-73.91%)
Mutual labels:  json
Kodirpc
Kodi JSON-RPC API/v6 Wrapper in C#
Stars: ✭ 5 (-78.26%)
Mutual labels:  json-rpc
Silverstripe Jsontext
JSON storage and querying
Stars: ✭ 22 (-4.35%)
Mutual labels:  json
Jkt
Simple helper to parse JSON based on independent schema
Stars: ✭ 22 (-4.35%)
Mutual labels:  json
Raccoon Plugin
With Raccoon, use a JSON or YAML file to manage WordPress theme features
Stars: ✭ 18 (-21.74%)
Mutual labels:  json
Csharpjson
C# 编写的通用Json数据解析库
Stars: ✭ 16 (-30.43%)
Mutual labels:  json
Sanest
sane nested dictionaries and lists for python
Stars: ✭ 19 (-17.39%)
Mutual labels:  json
Jackson Module Kotlin
Module that adds support for serialization/deserialization of Kotlin (http://kotlinlang.org) classes and data classes.
Stars: ✭ 830 (+3508.7%)
Mutual labels:  json
Spray Json
A lightweight, clean and simple JSON implementation in Scala
Stars: ✭ 917 (+3886.96%)
Mutual labels:  json
Bludit
Simple, Fast, Secure, Flat-File CMS
Stars: ✭ 824 (+3482.61%)
Mutual labels:  json
Html2json
Lightweight library that converts a HTML webpage to JSON data using a template defined in JSON.
Stars: ✭ 18 (-21.74%)
Mutual labels:  json
Easy Mock Server
A mock server for json and mock template files
Stars: ✭ 22 (-4.35%)
Mutual labels:  json

=================== python-ripple-lib

| python-ripple-lib is a client library to access Ripple rippled API <https://developers.ripple.com/rippled-api.html>_ and Data API <https://developers.ripple.com/data-api.html>_. | Currently it supports public and admin methods (some of them still are work in progress though). List of implemented methods is displayed below. Basically, it's just a wrapper on top of http requests made to API.

Available on PyPi <https://pypi.org/project/python-ripple-lib/>_

Installation

To install the package from PyPi run the following command

::

pip install python-ripple-lib

If you want to install package from this repo, use setup.py

::

python setup.py install

If you want to install package just for development purposes, use another command

::

python setup.py develop

This command creates symlinks to package files instead of copying it to package directory

JSON-RPC Methods

| Most of JSON-RPC methods are implemented inside, for the full list of methods please refer to list of Public <https://developers.ripple.com/public-rippled-methods.html>_ and Admin <https://developers.ripple.com/admin-rippled-methods.html>_ methods from ripple documentation | How to use:

.. code-block:: python3

from ripple_api import RippleRPCClient

# module supports authentication as well
rpc = RippleRPCClient('http://s1.ripple.com:51234/', username='<username>', password='<password>')
account_info = rpc.account_info('r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59')

Data API Methods

| Most of Data API requests are implemented here as well, fll list located in here <https://developers.ripple.com/data-api.html>_ | How to use:

.. code-block:: python

from ripple_api import RippleDataAPIClient

api = RippleDataAPIClient('https://data.ripple.com')
identifier = '3170DA37CE2B7F045F889594CBC323D88686D2E90E8FFD2BBCD9BAD12E416DB5'
query_params = dict(transactions='true')
ledger_info = api.get_ledger(ledger_identifier=identifier, **query_params)

| Example of get_transactions() query:

.. code-block:: python

from ripple_api import RippleDataAPIClient from pprint import pprint

api = RippleDataAPIClient('https://data.ripple.com')

to get name of a specific transaction type please refer to this link:

https://developers.ripple.com/transaction-types.html

query_params = dict(type="Payment") txs = api.get_transactions(**query_params) pprint(txs)

Additional methods

Send XRP from address tp address via Account instance:

.. code-block:: python

from ripple_api import Account

taker = 'rYuHe4VogMzYmvHpSsgGxRH97UvqumgER'
issuer = 'rMEmLrfkfooLjdkerU5TKTcAVpfy9fpSxt'
seed = '<account_seed>'
account = Account('http://localhost:5005', issuer, seed)
tx_info = account.send_xrp(issuer=issuer, taker=taker, secret=seed, amount=10)

Contributing

  1. Fork this project
  2. Clone it locally
  3. Add your changes
  4. Run tests:

::

make test

or

::

python -m unittest -v
  1. If tests are successful and everything is OK, commit to your local fork
  2. Submit a pull request to this repo
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].