Skip to main content

Send JSON-RPC requests

Project description

PyPI Downloads Coverage Status


Version 3 is out. See the changelog, example usage, and read the updated documentation.

Send JSON-RPC requests in Python.

pip install "jsonrpcclient[requests]"
import jsonrpcclient
response = jsonrpcclient.request("http://localhost:5000", "ping")
>>> response.text
'{"jsonrpc": "2.0", "result": "pong", "id": 1}'

Full documentation is at


pip install "jsonrpcclient[unittest]" mypy
mypy jsonrpcclient

See also: jsonrpcserver

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
jsonrpcclient-3.2.2.tar.gz (14.6 kB) Copy SHA256 hash SHA256 Source None Oct 20, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page