Process incoming JSON-RPC requests in Python.
pip install jsonrpcserverfrom jsonrpcserver import method, Result, Ok @method def ping() -> Result: return Ok("pong") response = dispatch('{"jsonrpc": "2.0", "method": "ping", "id": 1}') # => '{"jsonrpc": "2.0", "result": "pong", "id": 1}'Watch a video on how to use it.
Full documentation is in the wiki.
See also: jsonrpcclient
