Skip to main content

Madtornado is a project templates for Tornado framework and quickly generate the Tornado project.

Project description

madtornado

Downloads version codebeat badge Build Status Documentation Status

Madtornado is a project templates for Tornado framework and quickly generate the Tornado project.

Installation

pip install madtornado
sea --init_project [project path]

The powerful madtornado

Very easy to check whether is not-null for arguments

args = self.get_argument_for({"a": None, "b": None, "c": None})
check_rule = {
    "a": [check.not_null], "b": [check.not_null], "c": [check.not_null("c type is error")]
}
result = check.some(args, check_rule)
print(result.__dict__)

Used madtornado

workspace

%madtornado_project%\ancient\view\reception.py

start server

python server.py

Create route

file : reception.py

@register.route(use=register.PRT)
class IndexHandler(BaseHandler):
    """

    url: http://127.0.0.1:8095/prt/index

    """

    async def get(self):
        self.write("<h1 style='text-align:center'>Index</h1>")

    async def post(self):
        self.throw(404)

    async def put(self):
        self.throw(404)

    async def delete(self):
        self.throw(404)

Quickly create route

sea --new_recp %madtornado_project%\ancient\view\reception.py

Configure anything

%madtornado_project%\config\tornado.cfg

Advise

  • Nginx ( IIS ) use port 80
  • Tomcat use port 8080
  • Apache2 use port 8088
  • madtornado use port 8095

Resources

You can read madtornado Documentation online for more information.

License

madtornado uses the MIT license, see LICENSE file for the details.

Project details


Download files

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

Files for madtornado, version 0.3.9
Filename, size File type Python version Upload date Hashes
Filename, size madtornado-0.3.9-py3-none-any.whl (14.0 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page