Skip to main content

Send JSON-RPC requests

Project description

:warning: 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.0rc1.tar.gz (6.5 kB view details)

Uploaded Source

File details

Details for the file jsonrpcclient-4.0.0rc1.tar.gz.

File metadata

  • Download URL: jsonrpcclient-4.0.0rc1.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.0

File hashes

Hashes for jsonrpcclient-4.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 affd223178d3ff875a25e27bc74dfc08ff5f4d39f632bd4616c150010e48e335
MD5 029434119205e3ca6ec87508e2d1e22f
BLAKE2b-256 8a78733f9ffdcd7c6ed6b46171c6488832a41349e68278b8fa1f124b22b8e530

See more details on using hashes here.

Supported by

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