Skip to main content

Send JSON-RPC requests

Project description

September 1, 2021: Version 4 has been released. Read about the changes in version 4, or read the full documentation. For earlier versions jump to the 3.x branch or the documentation for version 3.

jsonrpcclient

Generate JSON-RPC requests and parse responses in Python.

PyPI Downloads Code Quality Coverage Status

pip install jsonrpcclient
>>> from jsonrpcclient import parse, request
>>> import requests
>>> response = requests.post("http://localhost:5000/", json=request("ping"))
>>> parse(response.json())
Ok(result='pong', id=1)

Full documentation is at jsonrpcclient.com.

See also: jsonrpcserver

Project details


Release history Release notifications | RSS feed

Download files

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

Files for jsonrpcclient, version 4.0.2
Filename, size File type Python version Upload date Hashes
Filename, size jsonrpcclient-4.0.2.tar.gz (6.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page