Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 977 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 977 Bytes

jsonrpcclient

PyPI Code Quality Coverage Status Downloads

Generate JSON-RPC requests and parse responses in Python.

from jsonrpcclient import parse, request
import requests
response = requests.post("http://localhost:5000/", json=request("ping"))
parsed = parse(response.json())  # Ok(result='pong', id=1)

Watch a video on how to use it.

Full documentation is at jsonrpcclient.com.

See also: jsonrpcserver