Skip to content

explodinglabs/jsonrpcserver

Repository files navigation

Logo

PyPI Code Quality Coverage Status Downloads License

Process incoming JSON-RPC requests in Python

Installation

pip install jsonrpcserver

Usage

from jsonrpcserver import dispatch, method, Success @method def ping(): return Success("pong") response = dispatch('{"jsonrpc": "2.0", "method": "ping", "id": 1}') # => '{"jsonrpc": "2.0", "result": "pong", "id": 1}'

Full documentation is at jsonrpcserver.com.

🎥 Video

jsonrpcserver.mp4

📖 See Also

  • jsonrpcclient – Create JSON-RPC requests and parse responses in Python

About

Process incoming JSON-RPC requests in Python

Topics

Resources

License

Stars

Watchers

Forks

Contributors 19

Languages