jsonrpcserver
jsonrpcserver
pypi i jsonrpcserver
jsonrpcserver

jsonrpcserver

Process incoming JSON-RPC requests in Python

by explodinglabs

5.0.9 (see all)License:MIT
pypi i jsonrpcserver
Readme

jsonrpcserver

PyPI Code Quality Coverage Status Downloads

Process incoming JSON-RPC requests in Python.

from jsonrpcserver import method, serve, Success

@method
def ping():
    return Success("pong")

if __name__ == "__main__":
    serve()

Or use dispatch instead of serve:

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 at jsonrpcserver.com.

See also: jsonrpcclient

VersionTagPublished
5.0.9
7mos ago
5.0.8
8mos ago
5.0.7
1yr ago
5.0.6
1yr ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate