Skip to main content

Process JSON-RPC requests

Project description

Process incoming JSON-RPC requests in Python 2.7 and 3.3+.

>>> dispatch([cat, dog], {'jsonrpc': '2.0', 'method': 'cat'})
'meow'

Full documentation is available at readthedocs.

Recent Changes

3.1.1 (2015-10-27)

  • Notifications are no longer responded to, not even if there’s an error. This is a requirement of the JSON-RPC specification. However, it can be overridden when calling dispatch(), to force notifications to receive errors.

  • The HTTP status returned to notifications, which is 204 by default, can be configured.

  • Error responses can now be configured.

3.1.0 (2015-10-17)

dispatch() now accepts a dictionary of name:method pairs, as an alternative to the usual list of methods.

3.0.0 (2015-10-11)

Major update - much of the library has been rewritten. Although it works in much the same way as before, upgraders are advised to read the new documentation to pick up the changes.

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.1.1.tar.gz (9.5 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