Skip to main content

Send JSON-RPC requests

Project description

jsonrpcclient

PyPI Code Quality Coverage Status Downloads

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

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

jsonrpcclient-4.0.3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file jsonrpcclient-4.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for jsonrpcclient-4.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3cbb9e27e1be29821becf135ea183144a836215422727e1ffe5056a49a670f0d
MD5 62f5ffaf4d52886638f9b77e81281d1b
BLAKE2b-256 004bba54814656b155f14ae73092ae194dd04eaf7e8e9a3da4f2ee7ffc9fe98f

See more details on using hashes here.

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