Flaskteroids is a Python MVC framework built on Flask, SQLAlchemy, and Celery. It brings models, routes, templates, forms, background jobs, and email into a shared application workflow.
These guides teach you how to build with Flaskteroids. Start with the tutorial if you are new, or choose a component guide for the feature you are working on.
Build your first application
Getting started walks you through a product catalog. You will create a model, display products, and build forms to add, edit, and delete them. You need basic Python and HTML knowledge, but no experience with the underlying libraries.
The rest of the store tutorial adds one feature at a time:
- Login and product images — protect catalog changes and upload a photo.
- Restock notifications — connect subscriptions, inventory changes, background jobs, and email.
- Test the store — check the workflows you have built.
- Prepare for deployment — review security and try the generated Docker setup.
Each part continues in the same application. You can stop after the first part with a working catalog.
Find a guide
Component guides explain a feature through focused examples. They assume you have a generated application, but do not require completing the store tutorial.
Models
- Model basics — create, query, validate, and save records.
- Associations — connect models and work with related records.
- Callbacks — run shared behavior during a record's lifecycle.
- Fields — choose column types and understand submitted values.
- Attribute encryption — protect sensitive model data.
Routing and controllers
- Routing — connect URLs to actions.
- Controller basics — handle input and choose a response.
- Rate limits — limit repeated requests.
- Building an API — build and test a JSON API.
Views and frontend
- Templates and helpers — render pages and share presentation logic.
- Forms — accept input and help users correct mistakes.
- Turbo Frames and Streams — add inline navigation and page updates.
- Assets — add styles and images, then build production files.
- JavaScript with import maps — load modules without a build step.
Background work and email
- Background jobs — move work outside a request.
- Mailers — compose, preview, test, and deliver email.
Files and rich text
- Attachments — upload files and control download access.
- Rich text — edit and display formatted content safely.
Application setup and testing
- Project structure — find where code and configuration belong.
- Configuration — choose settings and manage secrets.
- Using the command line — generate components and run application tasks.
- Middleware — wrap requests before controller dispatch.
- Internationalization — translate text and localize dates.
- Testing — test models, requests, jobs, mail, and browser workflows.
Unless a guide says otherwise, run commands from your application root with
bin/flask. You do not need to activate the virtual environment.
To help improve these pages, see Writing guides.