embray / jsonrpcclient

Send JSON-RPC requests in Python

Home Page:https://jsonrpcclient.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jsonrpcclient

Send JSON-RPC requests in Python.

PyPI Downloads Coverage Status

pip install "jsonrpcclient[requests]"
>>> from jsonrpcclient import request
>>> response = request("http://fruits.com", "get", color="yellow")
>>> response.text
'{"jsonrpc": "2.0", "result": ["banana", "lemon", "mango"], "id": 1}'
>>> response.data.result
['banana', 'lemon', 'mango']

Full documentation is at jsonrpcclient.readthedocs.io.

See also: jsonrpcserver

About

Send JSON-RPC requests in Python

https://jsonrpcclient.readthedocs.io/

License:MIT License


Languages

Language:Python 100.0%