Send JSON-RPC requests
Project description
:warning: This master branch is for the upcoming version 4, currently in development (read: The future of this library). For the latest stable release, see the 3.x branch. Also, please pin your dependency to "jsonrpcclient<4" until you're ready to upgrade to v4.
jsonrpcclient
Generate JSON-RPC requests and parse responses.
pip install --pre jsonrpcclient
>>> from jsonrpcclient import parse, request_dict
>>> import requests
>>> response = requests.post("http://localhost:5000/", json=request_dict("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.0b1.tar.gz
(7.1 kB
view details)
File details
Details for the file jsonrpcclient-4.0.0b1.tar.gz
.
File metadata
- Download URL: jsonrpcclient-4.0.0b1.tar.gz
- Upload date:
- Size: 7.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 084d7411067e7543adc4edca26f4b5e0f18a9cae2ad568f7e547db66fb3f19d5 |
|
MD5 | 3f31e1b03260b8132f888a6a886377da |
|
BLAKE2b-256 | 9dcd215476826e8b33dd240a311e72d5a9a728a2e4653853cfd365465bf0cb58 |