Skip to main content

Send JSON-RPC requests

Project description

PyPI Coverage Status

jsonrpcclient

Version 3 is out. See the changelog and read the docs.

Send JSON-RPC requests in Python.

pip install "jsonrpcclient[requests]"
>>> from jsonrpcclient.clients.http_client import HTTPClient
>>> client = HTTPClient("http://localhost:5000")
>>> client.request("ping").data.result
'pong'

Full documentation is at jsonrpcclient.readthedocs.io.

Testing

pip install "jsonrpcclient[unittest]"
pytest
pip install mypy
mypy jsonrpcclient

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.

Source Distribution

jsonrpcclient-3.0.0.tar.gz (12.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page