liveBook · Manning

Flask

Flask is a lightweight Python web framework based on WSGI for building web applications and services.

How 6 Manning books explain it

A Pythonic Adventure: From Python basics to a working web app

Flask is a lightweight Python web application framework.

How it is used
Builds a first browser-accessible Python application, progressing from a local greeting to an interactive coffee-shop order form.
How deep it goes
Explains starter setup, routes, forms, requests, and templates through working examples, without descending into framework internals.
Examples
Uses a local greeting route and a coffee-shop menu that submits Coffee or Decaf and prints the selected drink.
What you can do after
Build it from scratch as a small Flask application that serves pages, accepts form input, and displays processed results.

Read how A Pythonic Adventure: From Python basics to a working web app explains Flask →

The Well-Grounded Python Developer: How the pros use Python and Flask

Flask is a lightweight web application framework for Python that handles HTTP requests and connects URL resources to application code.

How it is used
Connects HTTP requests for URL resources to Python responses in a web-based blogging application.
How deep it goes
Works from a minimal route through dynamic templates, then shows sessions and error handlers without detailing a production server setup.
Examples
Uses a Hello World route, a current-time page, and a blogging application with session and error-page needs.
What you can do after
Build it from scratch as a small Flask server, then render a dynamic page and extend the application with sessions or error handlers.

Read how The Well-Grounded Python Developer: How the pros use Python and Flask explains Flask →

Coding with AI

Flask is a lightweight Python web framework for building web applications and HTTP services.

How it is used
Supports Python web applications, HTTP services, database-backed pages, and REST APIs within small MVP-oriented projects.
How deep it goes
Explains initialization, routing, handlers, database retrieval, template rendering, and debug startup, without detailing advanced framework internals.
Examples
Uses TODO applications, a HAM radio practice test, SQLite questions, database models, and an index.html template.
What you can do after
Build a small Flask application that routes requests, reads database data, and renders an HTML page.

Read how Coding with AI explains Flask →

Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI

Flask is a lightweight Python web framework for building web applications and HTTP request handlers.

How it is used
Deploys a trained machine-learning model locally as a small web application for demonstrations and beta-client testing.
How deep it goes
Explains routes, view functions, model loading, and request handling, while stopping short of comprehensive Flask coverage.
Examples
Uses a property-price prediction interface with home and results pages, model-loading code, routes, query strings, and tensor conversion.
What you can do after
Build a local Flask demonstration that accepts web inputs, invokes a saved Keras model, and renders its prediction.

Read how Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI explains Flask →

Fight Fraud with Machine Learning

Flask is a lightweight Python web framework for building web applications and HTTP services.

How it is used
Deploys trained fraud-detection models as services that make real-time predictions on online transactions.
How deep it goes
Shows the complete inference route from artifact loading and preprocessing through thresholding, output formatting, and HTTP serving.
Examples
Uses a /predict endpoint that classifies incoming transactions as Genuine or Fraud.
What you can do after
Operate a Python ML service that preprocesses transaction payloads, performs inference, and returns fraud predictions.

Read how Fight Fraud with Machine Learning explains Flask →

Software Engineering for Data Scientists

Flask is a lightweight Python web framework for building web applications and APIs.

How it is used
Uses Flask to build lightweight Python web applications and progressively expose data-science dashboards through webpages.
How deep it goes
Demonstrates installation, application creation, routing, local launch, and multipage HTML before moving toward more complex applications.
Examples
Uses a message page, local development server, and multipage dashboard with metrics, data-view, and machine-learning links.
What you can do after
Build it from scratch by installing Flask, defining routes, returning webpage content, and launching a local application.

Read how Software Engineering for Data Scientists explains Flask →

Also covered in

What to know first

Related concepts

Questions about Flask

What is Flask?

Flask is a lightweight Python web framework based on WSGI for building web applications and services.

Which Manning books explain Flask?

A Pythonic Adventure: From Python basics to a working web app, The Well-Grounded Python Developer: How the pros use Python and Flask, Coding with AI, Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI, Fight Fraud with Machine Learning and Software Engineering for Data Scientists.

What should I know before learning Flask?

Manning books that teach Flask usually introduce Python, HTML, JavaScript and web application first.

What is the difference between Flask and Django?

Flask is a lightweight Python web framework based on WSGI for building web applications and services. Django is an open-source Python web framework providing integrated components for developing structured, database-backed web applications and services.

What is Flask a kind of?

Flask is a kind of framework. A software framework is a reusable foundation of components, conventions, and supporting mechanisms that structures application development and provides common functionality and extension points.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.