Send JSON-RPC requests
Project description
jsonrpcclient
Send JSON-RPC requests in Python.
pip install "jsonrpcclient[requests]"
>>> from jsonrpcclient import request
>>> response = request("http://fruits.com", "get", color="yellow")
>>> response.text
'{"jsonrpc": "2.0", "result": ["banana", "lemon", "mango"], "id": 1}'
>>> response.data.result
['banana', 'lemon', 'mango']
Full documentation is at jsonrpcclient.readthedocs.io.
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.3.5.tar.gz
(15.5 kB
view details)
File details
Details for the file jsonrpcclient-3.3.5.tar.gz
.
File metadata
- Download URL: jsonrpcclient-3.3.5.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.19.1 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a17d02a53061748384b15b4e9812e866d5f69771656ccf7031d6dc64d0c38099 |
|
MD5 | ac7d4ce15202d6c9775f9bfea70764f2 |
|
BLAKE2b-256 | be6a0e756584a9550ff7d5f5a13a4cf325feeb5036e5ec8958617dd26321b7b6 |