Beau Barker


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

$ pip install 'jsonrpcclient[requests]'
>>> import jsonrpcclient
>>> jsonrpcclient.request('', 'speak')
--> {"jsonrpc": "2.0", "method": "speak", "id": 1}
<-- {"jsonrpc": "2.0", "result": "meow", "id": 1} (200 OK)

This example uses the requests library for sending, but more options are available. See examples in various frameworks, or read the guide to usage and configuration.

Contribute on Github.

See also: jsonrpcserver