๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout Register Now โ†’
Menu

Categories

Python Beginner

What is Flask?

A lightweight web framework for Python that provides essentials for building web applications without imposing structure.

Flask is a micro-framework โ€” it provides URL routing, request handling, templates (Jinja2), and development server, but leaves choices like database, forms, and authentication to the developer.

A basic Flask app is just a few lines: create an app, define routes with @app.route(), and return responses. Extensions add functionality: Flask-SQLAlchemy (ORM), Flask-Login (auth), Flask-WTF (forms). Flask is ideal for APIs, prototypes, and applications where you want full control.

Related Terms

Pathlib
A modern Python module providing an object-oriented interface for filesystem paths, replacing os.path operations.
Python Package
A directory containing Python modules and an __init__.py file, providing a way to organize and distribute reusable code.
Python Iterator Protocol
The interface requiring __iter__() and __next__() methods, enabling objects to be used in for loops and other iteration contexts.
Python Profiling
Measuring where Python code spends time and memory to identify performance bottlenecks and optimization opportunities.
Module
A Python file containing definitions and statements that can be imported and reused in other Python programs.
Matplotlib
A comprehensive plotting library for creating static, animated, and interactive visualizations in Python.
View All Python Terms โ†’