Skip to content

Generate JSON-RPC requests and parse responses in Python

License

Notifications You must be signed in to change notification settings

tor-web3/jsonrpcclient

 
 

Repository files navigation

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

About

Generate JSON-RPC requests and parse responses in Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%