Skip to main content

Process JSON-RPC requests

Project description

Coverage Status

jsonrpcserver

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

from jsonrpcserver import methods

@methods.add
def ping():
    return 'pong'

if __name__ == '__main__':
    methods.serve_forever()

Full documentation is at jsonrpcserver.readthedocs.io.

See also: jsonrpcclient

3.5.4 (Apr 30, 2018)

  • Refactoring

3.5.3 (Dec 19, 2017)

  • Allow requests to have any non-None id

3.5.2 (Sep 19, 2017)

  • Refactor for Request subclassing

3.5.1 (Aug 12, 2017)

  • Include context data in regular (synchronous) methods.dispatch

3.5.0 (Aug 12, 2017)

  • Pass some context data through dispatch to the methods.
  • Fix not calling notifications in batch requests.

3.4.3 (Jul 13, 2017)

  • Fix AttributeError on batch responses

3.4.3 (Jul 12, 2017)

  • Add Response.is_notification attribute

3.4.2 (Jun 9, 2017)

  • Fix convert_camel_case with array params

3.4.1 (Oct 4, 2016)

  • Disable logging in config
  • Performance improved
  • Fix async batch requests

3.4.0 (Sep 27, 2016)

  • Added asyncio support. (Python 3.5+)
  • Added a methods object to the jsonrpcserver module (so you can import jsonrpcserver.methods, rather than instantiating your own).
  • Added methods.dispatch().

3.3.4 (Sep 22, 2016)

  • Fix Methods.serve_forever in python 2 (thanks @bplower)

3.3.3 (Sep 15, 2016)

  • Updated method of logging exception (thanks @bplower)

3.3.2 (Aug 19, 2016)

  • Pass Methods named args onto MutableMapping
  • Remove unused logger

3.3.1 (Aug 5, 2016)

  • Allow passing dict to Methods constructor

3.3.0 (Aug 5, 2016)

  • A basic HTTP server has been added.

Project details


Release history Release notifications

This version
History Node

3.5.4

History Node

3.5.3

History Node

3.5.2

History Node

3.5.1

History Node

3.5.0

History Node

3.4.4

History Node

3.4.3

History Node

3.4.2

History Node

3.4.1

History Node

3.4.0

History Node

3.3.4

History Node

3.3.3

History Node

3.3.2

History Node

3.3.1

History Node

3.3.0

History Node

3.2.2

History Node

3.2.1

History Node

3.2.0

History Node

3.1.1

History Node

3.1.0

History Node

3.0.0

History Node

2.1.1

History Node

2.1.0

History Node

2.0.2

History Node

2.0.1

History Node

2.0.0

History Node

1.0.13

History Node

1.0.12

History Node

1.0.11

History Node

1.0.10

History Node

1.0.9

History Node

1.0.8

History Node

1.0.7

History Node

1.0.6

History Node

1.0.5

History Node

1.0.4

History Node

1.0.3

History Node

1.0.2

History Node

0.01

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
jsonrpcserver-3.5.4.tar.gz (13.5 kB) Copy SHA256 hash SHA256 Source None Apr 29, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page