SlideShare a Scribd company logo
Flask
Delivered As
“It came out of an
April Fool's joke but
proved popular enough
to make into a
serious application
in its own right.”
2
Our process is easy
Flask?
3
Getting Started Implementation
1.
Flask in a Glance
4
What’s the deal?
Microframework Easy to code Easy to configure
5
Well Documented Restful Testable
Open Source WSGI JINJA 2
Extensible
It offers great deal of functionality
freedom, plug as you go
6
2.
Installation and
Configuration
7
Virtualenv
Virtualenv is a tool for creating
isolated python environment
8
$ sudo apt-get install python-virtualenv
$ virtualenv ENV
$ . ENV/bin/activate
$ deactivate
virtualenv
Python
2.X
Python
3.X
Python
2.X
Project Structure
Project_name
ENV
static
css
js
templates
app.py
9
Flask Installation
10
$ . ENV/bin/activate
$ pip install Flask
#import the flask package
from flask import Flask
#initialize the app
app = Flask(__name__)
#define a route
@app.route(‘/’)
def HelloWorld():
return ‘Hello World’
#run the app
app.run(debug=True, port=8080)https://localhost:8080
Project dependencies
flask-SQLAlchemy
Python SQL toolkit and ORM that
works independently from database
type
flask-mail
Mail extension provides an interface
to set up SMTP and to send
messages from your views and
scripts
11
$ pip install flask-SQLAlchemy $ pip install flask-mail
enum
Enum is a package that helps in
mapping enum in sqlalchemy
$ pip install enum34
Flask SQLAlchemy
12
#import packages
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
#initialize the app
app = Flask(__name__)
db = SQLAlchemy(app)
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root:@localhost/todolist'
#run the app
app.run(debug=True, port= 8080)
Flask Mail
13
#import packages
from flask import Flask
from flask_mail import Mail
#initialize the app
mail = Mail()
app = Flask(__name__)
mail.init_app(app)
#route
@app.route("/")
def index():
msg = Message("Hello", sender="from@example.com", recipients=["to@example.com"])
#run the app
app.run(debug=True, port= 8080)
3.
Realisation
14
15
Web App
We will be working on a
simple TODO app
16
THANKS!
Pay Attention to Code!

More Related Content

PPTX
Python/Flask Presentation
PDF
Deploying a Pylons app to Google App Engine
PPTX
PDF
Behaviour Driven Development con Behat & Drupal
PDF
Turnkey Continuous Delivery
PPTX
A Java Microservices Spring Boot and Docker case study.
PPTX
Managing your Drupal project with Composer
PDF
Flask for cs students
Python/Flask Presentation
Deploying a Pylons app to Google App Engine
Behaviour Driven Development con Behat & Drupal
Turnkey Continuous Delivery
A Java Microservices Spring Boot and Docker case study.
Managing your Drupal project with Composer
Flask for cs students

What's hot (20)

PDF
Capistrano deploy Magento project in an efficient way
PDF
Cocoa pods
PDF
Continuous Web Performance Monitoring with Jenkins
PDF
"13 ways to run web applications on the Internet" Andrii Shumada
PPTX
Pemrograman mobile menggunakan ionic framework
PDF
Laravel Poznań Meetup #12 - "Speed up web API with Laravel and Swoole using ...
PDF
Magento 2 Capistrano Deploy
PPT
Auto Build
PDF
10 less-known Laravel Packages: May 2016
PDF
JHipster Conf 2018 : Connect your JHipster apps to the world of APIs with Ope...
PDF
Laravel Code Generators and Packages
PDF
Instrumentación de entrega continua con Gitlab
PPTX
Volunteering atyouseeforit services
PDF
‘Hello, world!’ application how to dockerize golang application
PPTX
TechUG - Kubernetes 101 - May 2020
PPTX
Pluralsight Webinar: Simplify Your Project Builds with Docker
PDF
10 less-known Laravel Packages: April 2016
PDF
Golang for PHP Developers: Dependency management with Glide
PDF
PuppetConf 2016: Deploying Multi-Tier Windows Applications with Application O...
PDF
Laravel Forge: Hello World to Hello Production
Capistrano deploy Magento project in an efficient way
Cocoa pods
Continuous Web Performance Monitoring with Jenkins
"13 ways to run web applications on the Internet" Andrii Shumada
Pemrograman mobile menggunakan ionic framework
Laravel Poznań Meetup #12 - "Speed up web API with Laravel and Swoole using ...
Magento 2 Capistrano Deploy
Auto Build
10 less-known Laravel Packages: May 2016
JHipster Conf 2018 : Connect your JHipster apps to the world of APIs with Ope...
Laravel Code Generators and Packages
Instrumentación de entrega continua con Gitlab
Volunteering atyouseeforit services
‘Hello, world!’ application how to dockerize golang application
TechUG - Kubernetes 101 - May 2020
Pluralsight Webinar: Simplify Your Project Builds with Docker
10 less-known Laravel Packages: April 2016
Golang for PHP Developers: Dependency management with Glide
PuppetConf 2016: Deploying Multi-Tier Windows Applications with Application O...
Laravel Forge: Hello World to Hello Production
Ad

Similar to Flask (20)

PDF
Python Web Applications With Flask Handon Your Flask Skills2024 Jeffrey Leon ...
PDF
Flask Introduction - Python Meetup
PDF
How to Design a Great API (using flask) [ploneconf2017]
PDF
BUILDING MODERN PYTHON WEB FRAMEWORKS USING FLASK WITH NEIL GREY
PPTX
Flask_basics.pptx
PPTX
Flask Application ppt to understand the flask
PDF
Flask Web Development 1st Edition Miguel Grinberg
PDF
Python master class part 1
PPTX
Flask and Introduction to web frameworks
PPTX
flask frameworkbasedonPython_microframework.pptx
PPT
Learn flask in 90mins
PPTX
Building a local web application with Flask
PPTX
Flask-Python
PDF
Python and Flask introduction for my classmates Презентация и введение в flask
KEY
LvivPy - Flask in details
PDF
Python Flask Tutorial For Beginners | Flask Web Development Tutorial | Python...
KEY
PHP to Python with No Regrets
PPTX
Flask & Flask-restx
PPTX
Flask restfulservices
Python Web Applications With Flask Handon Your Flask Skills2024 Jeffrey Leon ...
Flask Introduction - Python Meetup
How to Design a Great API (using flask) [ploneconf2017]
BUILDING MODERN PYTHON WEB FRAMEWORKS USING FLASK WITH NEIL GREY
Flask_basics.pptx
Flask Application ppt to understand the flask
Flask Web Development 1st Edition Miguel Grinberg
Python master class part 1
Flask and Introduction to web frameworks
flask frameworkbasedonPython_microframework.pptx
Learn flask in 90mins
Building a local web application with Flask
Flask-Python
Python and Flask introduction for my classmates Презентация и введение в flask
LvivPy - Flask in details
Python Flask Tutorial For Beginners | Flask Web Development Tutorial | Python...
PHP to Python with No Regrets
Flask & Flask-restx
Flask restfulservices
Ad

More from Fadwa Gmiden (9)

PDF
Managing time and productivity
PDF
IoT in Smart Cities
PDF
PPTX
PDF
Metal as a Server
PDF
Web Development best practices
PPTX
Ubuntu presentation
PPTX
Web essentials
PPTX
Synchronisation sous systeme linux
Managing time and productivity
IoT in Smart Cities
Metal as a Server
Web Development best practices
Ubuntu presentation
Web essentials
Synchronisation sous systeme linux

Recently uploaded (20)

PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
history of c programming in notes for students .pptx
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
Odoo POS Development Services by CandidRoot Solutions
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
System and Network Administration Chapter 2
PDF
Digital Strategies for Manufacturing Companies
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPT
Introduction Database Management System for Course Database
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
history of c programming in notes for students .pptx
Wondershare Filmora 15 Crack With Activation Key [2025
How Creative Agencies Leverage Project Management Software.pdf
CHAPTER 2 - PM Management and IT Context
Operating system designcfffgfgggggggvggggggggg
How to Choose the Right IT Partner for Your Business in Malaysia
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Navsoft: AI-Powered Business Solutions & Custom Software Development
Odoo POS Development Services by CandidRoot Solutions
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
System and Network Administration Chapter 2
Digital Strategies for Manufacturing Companies
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Design an Analysis of Algorithms II-SECS-1021-03
Introduction Database Management System for Course Database
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf

Flask