Skip to content

LesanOuO/tornado_router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tornado_router plus

This project is an enhancement of tornado_router

Decorator based router for Tornado Web Framework that help reduce development time.

Features

  • RESTful support

The original author's project does not provide RESTful style support.

@router.route("index")
@router.route("index", "post")
  • JWT Token auth
@router.route(auth=True)
  • JSON request
@router.route(json=True)
  • Auto import

You just need to create a handler folder in the root of your project to automatically scan for all decorators

app = tornado.web.Application(handlers=GloabelRouter.handlers)
  • Usage

For more information on how to use it, please refer to the example folder

About

Enhanced version of tornado_router

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages