Flask
Flask is a lightweight Python web framework based on WSGI for building web applications and services.
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.
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
- frameworkkind of · A software framework is a reusable structure that provides components, conventions, services, or extension points for building applications or other software systems.
- Pythonuses · Python is a high-level, general-purpose, dynamically typed programming language known for readable syntax and automatic memory management.
- Djangoalternative to · Django is an open-source Python web framework providing integrated components for developing structured, database-backed web applications and services.
- Jinjauses · Jinja is a Python templating engine that generates text by rendering templates containing static content, expressions, variables, and control structures with supplied data.
- templateuses · A template is a reusable structure with fixed elements and variable parts for creating or generating similar content, outputs, or artifacts.
- render_templatehas part · render_template is a Flask function that combines a named template with supplied context data and returns the resulting rendered response.
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.



