Skip to main content
JSON RPC implementation for tornado
===================================

This implementation follow JSONRPC 2.0 specification.

REQUIREMENTS
------------

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

INSTALLATION
------------

pip install tornado_jsonrpc

USAGE
-----

It is so simple:

1. Just create `views.py`

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 `tornado_app.py`, 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

Application(
[
('/api', views.JSONRPCHandler, dict(views=views)),
],
).listen(8888)

IOLoop.current().start()

CONTRIBUTE
----------

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


Release files for tornado-jsonrpc 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tornado-jsonrpc 1.0.3
File Size Uploaded
tornado_jsonrpc-1.0.3.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tornado-jsonrpc 1.0.3
File Interpreter ABI Platform
tornado_jsonrpc-1.0.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 11.9 kB

Release files / tornado_jsonrpc-1.0.3.tar.gz

Download URL tornado_jsonrpc-1.0.3.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
59fd4fadf41aa4eb6f2d4d66bdc3fd090e6ef78112d5c9e9fba6ef108bc674e0
BLAKE2b-256 checksum
How to use checksums
3d74264c8a2d312ffc387411a9963c129884e88f23c7297f61ae1b1bf985596a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / tornado_jsonrpc-1.0.3-py2.py3-none-any.whl

Download URL tornado_jsonrpc-1.0.3-py2.py3-none-any.whl
Size 8.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
62db6ae6dd1468798337fa6f0a6f886fbf2d2b41b4b8baa93f601874f463e480
BLAKE2b-256 checksum
How to use checksums
d774636371436522ff8a9d9ad0b1431ab94906ec4a82f433552af62c8183c734
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.0.5

1 release file

1.0.4

2 release files

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page