Skip to main content

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


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page