A library to process JSON-RPC requests in Python, supporting method dispatching, async, and middleware. Current version 5.0.9, maintained on GitHub.
pip install jsonrpcserverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal example: define a method and start the server.
Use `serve(async_=True)` instead of importing `async_serve`.
Use `dispatcher = Dispatcher(); @dispatcher.add` or create separate dispatchers for different services.
Import from `jsonrpcserver` directly, e.g., `from jsonrpcserver import Success, Error`.
Run `pip install jsonrpcserver`.
Upgrade to v5: `pip install -U jsonrpcserver`.
Add `from jsonrpcserver import method` at the top of the file.