jsonrpcclientΒΆ

Send JSON-RPC requests in Python 2.7 and 3.3+.

$ pip install jsonrpcclient requests
>>> from jsonrpcclient.http_server import HTTPServer
>>> HTTPServer('http://cats.com/').request('speak')
--> {"jsonrpc": "2.0", "method": "speak", "id": 1}
<-- {"jsonrpc": "2.0", "result": "meow", "id": 1}
'meow'

For advanced usage and configuration, see the jsonrpcclient API.

Contribute on Github.

See also: jsonrpcserver