Skip to content

explodinglabs/jsonrpcclient

 
 

Repository files navigation

September 1, 2021: Version 4 has been released. Read about the changes in version 4, or read the full documentation for version 4. For earlier versions jump to the 3.x branch or read the documentation for version 3.

jsonrpcclient

Generate JSON-RPC requests and parse responses in Python.

PyPI Downloads Checks Coverage Status

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

Full documentation is at jsonrpcclient.com.

See also: jsonrpcserver

About

Generate JSON-RPC requests and parse responses in Python

Topics

Resources

License

Stars

Watchers

Forks

Contributors 17

Languages