Skip to main content

Send JSON-RPC requests

Project description

jsonrpcclient

Send JSON-RPC requests in Python.

PyPI Downloads Coverage Status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jsonrpcclient, version 3.3.6
Filename, size File type Python version Upload date Hashes
Filename, size jsonrpcclient-3.3.6.tar.gz (16.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page