Send JSON-RPC requests
Project description
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)