skip to navigation
skip to content

tornado-jsonrpc 1.0.4

jsonrpc implementation for tornado

JSON RPC implementation for tornado

This implementation follow JSONRPC 2.0 specification.


python >= 3.5 (I use async/await in the package)


pip install tornado_jsonrpc


It is so simple:

1. Just create ``

def some_view(request: RequestHandler, *args, **kwargs): #
args: positional params, which You pass when call jsonrpc method
kwargs: named params, which You pass when call jsonrpc method

return {'foo': 'bar'} # any JSON serializable object (dict or list for example)

2. And then create ``, where You define tornado Application:

from tornado_jsonrpc import JSONRPCHandler
from tornado.ioloop import IOLoop
from tornado.web import Application

from your_package import views

('/api', views.JSONRPCHandler, dict(views=views)),


3. You can also use CORSIgnoreJSONRPCHandler to receive requests from all sources
or WithCredentialsJSONRPCHandler to also receive cookies with request.


If You have found an error or want to offer changes - create a pull request and I will review it as soon as possible!

File Type Py Version Uploaded on Size
tornado_jsonrpc-1.0.4-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2017-08-15 8KB
tornado_jsonrpc-1.0.4.tar.gz (md5) Source 2017-08-15 3KB