liveBook · Manning

Flask

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

How 4 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 →

Related concepts

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.