Process incoming JSON-RPC requests in Python
Documentation | Developer Wiki
jsonrpcserver.mp4
pip install jsonrpcserverfromjsonrpcserverimportdispatch, method, Success@methoddefping(): returnSuccess("pong") response=dispatch('{"jsonrpc": "2.0", "method": "ping", "id": 1}') # => '{"jsonrpc": "2.0", "result": "pong", "id": 1}'👉 Full documentation is at explodinglabs.com/jsonrpcserver/.
👉 See the Wiki for community-editable usage examples in various frameworks, libraries, and transport protocols.
- jsonrpcclient – Create JSON-RPC requests and parse responses in Python
