JSON-RPC server library.
Project description
Handle JSON-RPC requests.
Write functions to carry out the JSON-RPC requests:
>>> api.register_method(lambda x, y: x + y, 'add')
Then dispatch requests to them:
>>> api.dispatch({'jsonrpc': '2.0', 'method': 'add', 'params': [2, 3], 'id': 1})
({'jsonrpc': '2.0', 'result': 5, 'id': 1}, 200)
The returned values - a JSON-RPC response and an HTTP status code - can be used to respond to a client.
Full documentation is available at https://jsonrpcserver.readthedocs.org/.
Release History
2.0.2 (2015-09-04)
Faster request validation. (#23)
2.0.1 (2015-05-09)
Fixed logging, now allows you to add handlers to getLogger(‘jsonrpcserver’). See docs for info.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jsonrpcserver-2.0.2.tar.gz
(6.2 kB
view hashes)