Bootstrap-Flask
Bootstrap 4 & 5 helper for your Flask projects.
Decision gist · record as of 2026-08-14
Yes. Bootstrap-Flask is actively maintained, has no known vulnerabilities, low install friction, and solves a real problem—reducing boilerplate when rendering forms and tables in Flask templates. It's well-suited for any Flask project using Bootstrap and WTForms. The permissive MIT license and stable API make it a safe dependency.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Bootstrap 4 or 5 CSS/JS to be included in your HTML templates separately; the package provides macros only, not the framework itself.
- Low friction: pure Python wheel with only Flask and WTForms as runtime dependencies.
- Active maintenance with recent commits and a stable release history since 2018.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
last release 2025-05-02 (469 days) · last repo commit 2026-02-20 · 1,195 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 301,656 downloads/mo, #7,833 on PyPI
Alternatives
Verify before relying
pip install bootstrap-flask
from flask import Flask
app = Flask(__name__)
# In template:
# {% from 'bootstrap5/form.html' import render_form %}
# {{ render_form(form) }}- Whether all Bootstrap 5 components (alerts, modals, cards, etc.) have corresponding macros or only forms, tables, and pagination.
- Performance impact when rendering large tables or complex nested forms with many fields.
- Exact scope of what the render_form, table, and pagination macros support beyond the examples shown.
What it is and what it does
Bootstrap-Flask is a Flask extension that bridges Flask, WTForms, and Bootstrap by providing a collection of Jinja macros. Instead of writing Bootstrap HTML by hand for forms, tables, and pagination controls, you import a macro and pass your Flask or WTForms object to it—the macro handles the markup generation. It supports both Bootstrap 4 and 5 through separate extension classes, each with its own template path.
The package is lightweight, depending only on Flask and WTForms at runtime. It's designed for developers building Flask web applications who want to reduce template boilerplate while maintaining Bootstrap's styling and structure. The macros handle form field rendering with validation error display, data object serialization to tables, and pagination link generation—common tasks that would otherwise require repetitive HTML.
Use it for
- Quickly render WTForms form objects with Bootstrap styling and validation error messages in one line.
- Convert a list of database records or dictionaries into a Bootstrap-styled HTML table without manual row/column markup.
- Display pagination controls as Bootstrap pagination components with proper link generation.
- Build admin dashboards or CRUD interfaces where forms and tables are generated from data objects.
- Migrate from older Flask-Bootstrap to a maintained extension that supports both Bootstrap 4 and 5.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Bootstrap-Flask is actively maintained, has no known vulnerabilities, low install friction, and solves a real problem—reducing boilerplate when rendering forms and tables in Flask templates. It's well-suited for any Flask project using Bootstrap and WTForms. The permissive MIT license and stable API make it a safe dependency.
Install
bootstrap-flask on PyPI
Before you install
Low friction: pure Python wheel with only Flask and WTForms as runtime dependencies. Active maintenance with recent commits and a stable release history since 2018.
Requires Bootstrap 4 or 5 CSS/JS to be included in your HTML templates separately; the package provides macros only, not the framework itself.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install bootstrap-flask
from flask import Flask
app = Flask(__name__)
# In template:
# {% from 'bootstrap5/form.html' import render_form %}
# {{ render_form(form) }}
Verify before relying
- Whether all Bootstrap 5 components (alerts, modals, cards, etc.) have corresponding macros or only forms, tables, and pagination.
- Performance impact when rendering large tables or complex nested forms with many fields.
- Exact scope of what the render_form, table, and pagination macros support beyond the examples shown.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesFlaskWTForms |
| Maintenance | Actively maintained 469 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 301,656 / month, #7,833 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: FlaskIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTP :: Dynamic ContentTopic :: Software Development :: Libraries :: Python Modules |
Evidence: bootstrap_flask-2.5.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “flask bootstrap form rendering”
- Bootstrap-FlaskBootstrap-Flask provides Jinja macros that render Flask and WTForms…
- crispy-bootstrap4Provides Bootstrap 4 HTML templates for django-crispy-forms, enabling…
- django-bootstrap5Provides Django template tags and filters to render Bootstrap 5…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also Flask-Bootstrap · django-bootstrap4 · crispy-bootstrap4 · django-bootstrap5 · WTForms · Flask-WTF · crispy-bootstrap5 · django-bootstrap-form · WTForms-Alchemy · paginate