Process JSON-RPC requests
Project description
Process incoming JSON-RPC requests in Python 2.7 and 3.3+.
>>> def cat():
... return 'meow'
...
>>> from jsonrpcserver import dispatch
>>> dispatch([cat], {'jsonrpc': '2.0', 'method': 'cat', 'id': 1})
{'jsonrpc': '2.0', 'result': 'meow', 'id': 1}
Full documentation is at jsonrpcserver.readthedocs.io.
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-3.2.2.tar.gz
(10.1 kB
view hashes)