Within the scope of MVC (Model-View-Controller) architecture, Werkzeug covers the Controller (C) and Jinja2 covers the View (V). High-level tasks like database access, web form and user authentication are supported through "extensions". Jinja2 ): a full-feature template engine for Python.(WSGI is a specification for simple and universal interface between web servers and Python web applications.) Werkzeug ): a WSGI (Web Server Gateway Interface) library for Python, which includes a URL routing system, fully featured request and response objects and a powerful debugger.Flask is actually a glue that sticks together two popular frameworks: It is so small to be called a micro-framework. Python-Flask Frameworkįlask ) was created by Armin Ronacher in 2000 as a small, minimalistic and light-weight Python Webapp framework. This article describe the Python's flask framework. You need to make your own decision to select a framework, which could be a hard choice. There are many Python frameworks available, e.g., full-stack frameworks like Djiango, TurboGears, web2py non-full-stack frameworks like Flask, Pyramid. Furthermore, there are just too many frameworks available and choosing the right framework turns out to be a difficult decision. On the other hand, using a framework means that you need to spend weeks or even months reading and understanding the framework, as each framework has it own "syntax" and, hence, requires a steep learning curve. Worse still, your codes are most likely messy, buggy, un-tested and un-maintainable - you can't write better codes than those who could build framework. Rolling-your-own means that you need to write ten-thousand lines of boiler-plate codes, that are already provided by a framework. To build a complex webapp, you could roll-your-own (RYO) from scratch or build it over a framework (which defines the structure and provides a set of libraries for common tasks). Miguel Grinberg, Flask Web Development, O'Reilly, 2014. Italo Maia, Building Web Applications with Flask, Packt Pub., 2015.Flask Flask Documentation & User Guide Flask API.Introduction to Python-Flask Webapp Framework References:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |