Send JSON-RPC requests
Project description
Jsonrpcclient
Send JSON-RPC requests in Python.
Version 3 is out. It's Python 3.5+ only. See the changelog, example usage, and read the updated documentation.
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.
Testing
pip install "jsonrpcclient[unittest]" mypy
pytest
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.3.2.tar.gz
(14.9 kB
view details)
File details
Details for the file jsonrpcclient-3.3.2.tar.gz
.
File metadata
- Download URL: jsonrpcclient-3.3.2.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e7c9553788a0040f2d56b678269332fd9ba9e9ff2c219a0eb05d508a53ed947 |
|
MD5 | 5894077ed6b9fa42799c9735584f8472 |
|
BLAKE2b-256 | 25eadfbe55b07f01b99e16691a8d02107b52e55cf68afd7f0a56adc089b9b799 |