Skip to main content

Send JSON-RPC requests

Project description

PyPI Coverage Status

jsonrpcclient

Version 3 is out. See the changelog and read the docs.

Send JSON-RPC requests in Python.

pip install "jsonrpcclient[requests]"
>>> from jsonrpcclient.clients.http_client import HTTPClient
>>> client = HTTPClient("http://localhost:5000")
>>> client.request("ping").data.result
'pong'

Full documentation is at jsonrpcclient.readthedocs.io.

Testing

pip install "jsonrpcclient[unittest]"
pytest
pip install mypy
mypy jsonrpcclient

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-3.0.0.tar.gz (12.9 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: jsonrpcclient-3.0.0.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.2

File hashes

Hashes for jsonrpcclient-3.0.0.tar.gz
Algorithm Hash digest
SHA256 c68cc694c1555c90e1076ae706e9edcf205bc9d58c176dfaed91feb9cef345b8
MD5 dacfdf81b2cbd45945a553965fc3025f
BLAKE2b-256 23d75346f9763baef466fabd068034dcc3261af99f4f3e3f6f19da8866ae7638

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