Skip to main content

Flaskteroids

A batteries-included Python MVC framework built on Flask, SQLAlchemy, and Celery.

Build Status PyPI Version Python Versions License


Build web applications with a consistent layout and tools that work together. Flaskteroids provides models, controllers, templates, forms, jobs, and email, with generators to create the starting code.

Flask handles HTTP requests, SQLAlchemy and Alembic handle the database, and Celery runs background jobs. You can use their native APIs when you need more control, without giving up the framework's everyday workflows.

What's included

  • Generators for models, migrations, controllers, scaffolds, mailers, and authentication.
  • Models with associations, validations, and lifecycle callbacks.
  • Resource routing with CRUD routes and path helpers.
  • Jinja templates, form helpers, and HTML or JSON responses.
  • Turbo Frames and HTTP Streams with a locally bundled Turbo runtime.
  • Rich-text fields with an integrated Trix editor and safe HTML rendering.
  • File attachments with built-in disk storage and optional S3-compatible storage through flaskteroids-storage-s3.
  • YAML translations, scoped locales, pluralization, and localized date/time formats.
  • Background jobs and email delivery.
  • Environment settings, database.yml, encrypted credentials, and boot-time initializers.
  • Pytest-based transactional tests, YAML fixtures, job and mail assertions, and Playwright browser tests.
  • API-only applications with JSON scaffolds and request tests.

Installation

Requires Python 3.14 or newer. Install Flaskteroids in your Python environment:

pip install flaskteroids

Getting started

Create an application. Git, Bash, and uv must be installed.

flask new my_app
cd my_app

Generation installs dependencies and prepares your development database. Run application commands with bin/flask; no environment activation is needed. Start the server:

bin/flask run

Open http://127.0.0.1:5000 to see the welcome page.

bin/flask test
bin/flask test:system

The app includes a health test. An empty system suite succeeds without a browser.

Add a posts resource

Stop the server and run these commands inside my_app:

bin/flask generate scaffold Post title:string content:text
bin/flask db:prepare
bin/flask run

The scaffold generates a model, migration, controller, views, and routes. Visit http://127.0.0.1:5000/posts to create, view, edit, and delete posts.

Next steps

For a step-by-step tutorial, follow Getting started with Flaskteroids. Build a product catalog while learning models, controllers, forms, authentication, uploads, email, and testing. For a mobile client or separate frontend, follow Building an API instead.

  • Run bin/setup for a fresh checkout or after changing dependencies. Commit uv.lock.
  • To defer installation, use flask new my_app --skip-install, then run bin/setup later.
  • See Testing for browser setup and Configuration for environments and secrets.
  • Your generated deploy/README.md explains Docker and deployment.

Use the guide index to find help with models, routes, forms, encryption, background jobs, and other tasks.

Agent skills

Flaskteroids bundles coding guidance for agents with each release. New applications include .agents/skills/using-flaskteroids/SKILL.md, which points agents to instructions for the installed framework version. These instructions require agents to use public Flaskteroids APIs when they cover the task, rather than calling dependency internals.

In your application's Python environment, locate the installed skills with:

flask agent-skills path

The command prints the absolute skills directory path. Read using-flaskteroids/SKILL.md inside that directory for version-matched guidance. No application configuration or initialization is required.

Development

Use the committed lock and the same check-only commands as CI:

uv sync --locked --dev
uv run ruff check .
uv run ruff format --check .
uv run mypy
uv run playwright install chromium
uv run pytest -n auto --dist loadfile -q

For a browser-free run, use uv run pytest -m "not system". For fast framework feedback without generated applications, use uv run pytest -m "not generated_app and not system". Run the complete suite before merging. The generated_app marker follows the shared application factory and is also declared on standalone generator workflows; browser wrappers are marked system even when they live under tests/cli.

CI retains the browser-enabled Python 3.14–3.15 matrix and serial PostgreSQL/MySQL integration jobs. SQLite tests choose the worker count automatically, with file scheduling to keep module-scoped application setup together. Do not parallelize the server-database jobs against a shared database URL. CI measures framework coverage with --cov=flaskteroids; coverage also instruments Python subprocesses. Local test runs do not collect coverage unless requested.

Ruff uses the Python 3.14 / 88-column policy in pyproject.toml. Mypy checks only declaration records, queue adapters, and a static contract probe, not the whole ORM or generated applications. Raw Mako templates are excluded; generated samples are validated separately and are not promised Ruff-clean. See AGENTS.md for scope and contributor-only fixing commands. Repository logos and usage guidance are in branding/.

Releasing

See the release guide for release PRs and PyPI publishing.

License

Flaskteroids is released under the MIT License.

Metadata

Release files for flaskteroids 0.13.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flaskteroids 0.13.0
File Size Uploaded Provenance Actions
flaskteroids-0.13.0.tar.gz 219.3 kB With provenance Details for flaskteroids-0.13.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flaskteroids 0.13.0
File Interpreter ABI Platform Actions
flaskteroids-0.13.0-py3-none-any.whl Python 3 none any Details for flaskteroids-0.13.0-py3-none-any.whl

Total release size: 490.0 kB

Release files / flaskteroids-0.13.0.tar.gz

Download URL flaskteroids-0.13.0.tar.gz
Size 219.3 kB
Tags Source
SHA-256 checksum
How to use checksums
416227e5b8a14221a1d156b8a81c461009d9200aa16f53e4641320e520057f87
BLAKE2b-256 checksum
How to use checksums
c02050bd3c58a8ae7be3de76619f0ae86f4a36208820c19de111fc6c721f21d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / flaskteroids-0.13.0-py3-none-any.whl

Download URL flaskteroids-0.13.0-py3-none-any.whl
Size 270.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6307a1318827629d184bcd8092437de85335737ca58a6cefbb248aafa10fe181
BLAKE2b-256 checksum
How to use checksums
3697f610409c7660b81a47e8641fc3b649782c3e6828129a4fb425fb1f41e5f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Security for flaskteroids 0.13.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for flaskteroids-0.13.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page