hfaran / Tornado-JSON

A simple JSON API framework based on Tornado
http://tornado-json.readthedocs.org/
MIT License
273 stars 60 forks source link

Tornado-JSON

Join the chat at https://gitter.im/hfaran/Tornado-JSON

Build Status Coverage Status Documentation Status

Latest Version Supported Python versions Development Status Download format License

Overview

Tornado-JSON is a small extension of Tornado with the intent of providing the tools necessary to get a JSON API up and running quickly.

Some of the key features the included modules provide:

Usage

Check out the Hello World demo for a quick example and the accompanying walkthrough in the documentation. And then explore Tornado-JSON on readthedocs for the rest!

import tornado.ioloop
from tornado_json.routes import get_routes
from tornado_json.application import Application

import mywebapp

 # Automatically generate routes for your webapp
routes = get_routes(mywebapp)
# Create and start application
application = Application(routes=routes, settings={})
application.listen(8888)
tornado.ioloop.IOLoop.instance().start()

Example Projects That Use Tornado-JSON

Installation

pip install Tornado-JSON
git clone https://github.com/hfaran/Tornado-JSON.git
cd Tornado-JSON
python setup.py develop

Contributing

If there is something you would like to see improved, you would be awesome for opening an issue about it, and I'll promise my best to take a look.

Pull requests are absolutely welcome as well!

License

This project is licensed under the MIT License.

Running Tests

sudo pip2 install tox
sudo pip3 install tox
tox  # Will run test matrix