We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89e24dc commit 970717fCopy full SHA for 970717f
README.md
@@ -13,7 +13,7 @@ Process incoming JSON-RPC requests in Python.
13
14
To serve JSON-RPC methods:
15
```python
16
-from jsonrpcserver import Success, method, serve
+from jsonrpcserver import Success, method, serve, dispatch
17
18
@method
19
def ping():
@@ -25,9 +25,8 @@ if __name__ == "__main__":
25
26
To get a JSON-RPC response:
27
28
->>> from jsonrpcserver import dispatch
29
->>> dispatch('{"jsonrpc": "2.0", "method": "ping", "id": 1}')
30
-'{"jsonrpc": "2.0", "result": "pong", "id": 1}'
+dispatch('{"jsonrpc": "2.0", "method": "ping", "id": 1}')
+# '{"jsonrpc": "2.0", "result": "pong", "id": 1}'
31
```
32
33
Full documentation is at [jsonrpcserver.com](https://www.jsonrpcserver.com/).
0 commit comments