Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.71 KB

File metadata and controls

51 lines (36 loc) · 1.71 KB

PyPI Code Quality Coverage Status Downloads License

Jsonrpcserver Logo

Process incoming JSON-RPC requests in Python

Documentation | Developer Wiki

jsonrpcserver.mp4

🚀 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}'

📚 Documentation

👉 Full documentation is at explodinglabs.com/jsonrpcserver/.

👉 See the Wiki for community-editable usage examples in various frameworks, libraries, and transport protocols.

➡️ See Also

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