Generate JSON-RPC requests and parse responses in Python.
pip install jsonrpcclient
Generate a request:
from jsonrpcclient import request, parse
req = request("ping")
# => {'jsonrpc': '2.0', 'method': 'ping', 'id': 1}
Parse a response:
parsed = parse({"jsonrpc": "2.0", "result": "pong", "id": 1})
# => Ok(result='pong', id=1)
For strings, use request_json and parse_json.
Watch a video on how to use it
Full documentation is at jsonrpcclient.com.
See also: jsonrpcserver
Release files for jsonrpcclient 4.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jsonrpcclient-4.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Release files / jsonrpcclient-4.0.3-py3-none-any.whl
| Download URL | jsonrpcclient-4.0.3-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3cbb9e27e1be29821becf135ea183144a836215422727e1ffe5056a49a670f0d
|
|
BLAKE2b-256 checksum How to use checksums |
004bba54814656b155f14ae73092ae194dd04eaf7e8e9a3da4f2ee7ffc9fe98f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.14
|