Skip to main content

Send JSON-RPC requests

Project description

This master branch is for the upcoming version 4, currently in release candidate. Read about the changes in version 4, or read the full documentation for v4. For the stable release, jump to the 3.x branch or read the full documentation for v3. Also, please pin your dependency to "jsonrpcclient<4" until you're ready to upgrade to v4.

jsonrpcclient

Generate JSON-RPC requests and parse responses.

PyPI Downloads Checks Coverage Status

pip install --pre jsonrpcclient
>>> from jsonrpcclient import parse, request
>>> import requests
>>> response = requests.post("http://localhost:5000/", json=request("ping"))
>>> parse(response.json())
Ok(result='pong', id=1)

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 Distribution

jsonrpcclient-4.0.0rc2.tar.gz (6.6 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