0% found this document useful (0 votes)
106 views

Micro-Framework: Presented By-Khirod Kumar Behera

Flask is a micro web framework written in Python. It introduces Flask and compares it to other frameworks like Django, Falcon, Tornado, and Pyramid. It discusses Flask's components like Werkzeug and Jinja and keywords like WSGI. Features include a development server, templating, and extensions. An example Flask app is shown. While Flask is easy to get started with and customizable, it has limitations like no database support and can crash on complex programs, making it best for development rather than production.

Uploaded by

manas mohanty
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
106 views

Micro-Framework: Presented By-Khirod Kumar Behera

Flask is a micro web framework written in Python. It introduces Flask and compares it to other frameworks like Django, Falcon, Tornado, and Pyramid. It discusses Flask's components like Werkzeug and Jinja and keywords like WSGI. Features include a development server, templating, and extensions. An example Flask app is shown. While Flask is easy to get started with and customizable, it has limitations like no database support and can crash on complex programs, making it best for development rather than production.

Uploaded by

manas mohanty
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

(MICRO-FRAMEWORK)

PRESENTED BY- KHIROD KUMAR BEHERA


AGENDA

• Introduction on flask
• Some other frameworks
• Components in flask
• Some of the keywords we use in flask
• Features in flask
• Example of a simple hello-world flask application
• Pros and cons
• Conclusion
INTRODUCTION

• Flask is a micro web framework written in Python.


• Flask was created by Armin Ronacher of Pocoo on April 1, 2010(First release).
• Flask has become popular among Python enthusiasts. As of January 2020.
• Stable release:1.1.2 / April 3, 2020; 2 months ago
• Flask was voted the most popular web framework in the Python Developers Survey 2018.
FRAMEWORKS: -

Django. – (Web-Framework)
Flask. –(Micro-Framework)
Falcon. – (Restful API)
Tornado. –(Web Framework)
Pyramid. –(Flexible Framework)
COMPONENTS

• Werkzeug: -
• A toolkit for Web Server Gateway Interface (WSGI) applications
• Jinja: - 
• It is a template engine for the Python programming language . it handles templates in a 
sandbox.
KEYWORD USING IN FLASK

• WSGI: -It is a specification that describes how a web server communicates with web
applications
• UWSGI: -is a software application that "aims at developing a full stack for building 
hosting services
• NGINX: - is open source software for web serving, reverse proxying, caching, load
balancing, media streaming, and more. 
• APACHE: - is a free and open-source cross-platform web server software
• Gunicorn: -'Green Unicorn' is a Python WSGI HTTP Server for UNIX
FEATURES

• Development server and debugger


• Integrated support for unit testing
• RESTful request dispatching
• Uses Jinja templating
• Support for secure cookies (client side sessions)
• 100% WSGI 1.0 compliant
• Unicode-based
• Extensive documentation
• Google App Engine compatibility
• Extensions available to enhance features desired
EXAMPLE

Code Snippet Output


CONCLUSION

Pros Cons
• Extremely limited in features
• Easy to get started • No database
• Not async-friendly
• Very customizable
• Limited support/documentation
• WSGI compatible
• Small core and easily extensible
• Routing URLs is easy
CONCLUSION

• Flask is a microframework very easy to use and mostly flexible and easy to understandable
but its really not supporting to complex programs.
• It can make crash the app as well as server as it cant handle the complex programs.
• From best of my knowledge flask is not for production purpose.
• But we can use it for development only.

Thank you

You might also like