Skip to main content

Send JSON-RPC requests

Project description

September 1, 2021: Version 4 has been released. Read about the changes in version 4, or read the full documentation. For earlier versions jump to the 3.x branch or read the documentation for version 3.

jsonrpcclient

Generate JSON-RPC requests and parse responses in Python.

PyPI Downloads Checks Coverage Status

pip install 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.1.tar.gz (6.5 kB view details)

Uploaded Source

File details

Details for the file jsonrpcclient-4.0.1.tar.gz.

File metadata

  • Download URL: jsonrpcclient-4.0.1.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for jsonrpcclient-4.0.1.tar.gz
Algorithm Hash digest
SHA256 fbc57c5150d210e350dcb54737a18c39dcd7e2d0ce43e517839ff457334011d5
MD5 f0821b0ca6d54251f3e34e945e3e15a6
BLAKE2b-256 2e35595485dcbf5d05c7aa38c5cb1f61d1fac12fafd62610e4f91a812316f29a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page