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
Metadata
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 | Actions Reset |
|---|---|---|---|---|
| jsonrpcclient-4.0.3-py3-none-any.whl | Python 3 | none | any | Details for jsonrpcclient-4.0.3-py3-none-any.whl |
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
|
Security for jsonrpcclient 4.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.