Metadata-Version: 2.1
Name: madtornado
Version: 0.3.5
Summary: Madtornado is a project templates for Tornado framework and quickly generate the Tornado project.
Home-page: https://github.com/SystemLight/madtornado
Author: SystemLight
Author-email: 1466335092@qq.com
Maintainer: SystemLight
Maintainer-email: 1466335092@qq.com
License: MIT
Download-URL: https://github.com/SystemLight/madtornado/releases
Keywords: tornado,web,http_server,mt,Mad_tornado,madtornado,Tornado project template,python3,sea,generate the Tornado project,tornado cli,tornado脚手架,生成tornado项目
Platform: Windows
Platform: Linux
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.5
Requires-Dist: six (>=1.14.0)
Requires-Dist: tqdm (>=4.46.0)
Requires-Dist: greenlet (>=0.4.15)
Requires-Dist: PyJWT (>=1.7.1)
Requires-Dist: PyMySQL (>=0.9.3)
Requires-Dist: python-memcached (>=1.59)
Requires-Dist: tormysql (>=0.4.2)
Requires-Dist: tornado (>=6.0.4)
Requires-Dist: setuptools (>=46.1.3)
Requires-Dist: qrcode (>=6.1)

madtornado
==========

|Downloads| |version| |codebeat badge| |Build Status| |Documentation Status|

| Madtornado is a project templates for Tornado framework and quickly generate the Tornado project.
| PyPI page: https://pypi.python.org/pypi/madtornado

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 <https://madtornado.readthedocs.io/>`__ online for more
information.

License
=======

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

.. |Downloads| image:: https://pepy.tech/badge/madtornado
   :target: https://pepy.tech/project/madtornado
.. |version| image:: https://img.shields.io/pypi/v/madtornado
   :target: https://pypi.python.org/pypi/madtornado
.. |codebeat badge| image:: https://codebeat.co/badges/da82dbdb-eceb-4166-b9e9-2d290c5f608f
   :target: https://codebeat.co/projects/github-com-systemlight-madtornado-master
.. |Build Status| image:: https://travis-ci.org/SystemLight/madtornado.svg?branch=master
   :target: https://travis-ci.org/SystemLight/madtornado
.. |Documentation Status| image:: https://readthedocs.org/projects/madtornado/badge/?version=stable
   :target: https://madtornado.readthedocs.io/zh/stable/?badge=stable


