python-fasthtml
The fastest way to create an HTML app
Decision gist · record as of 2026-08-14
Yes, if you want to build interactive web apps in pure Python and are comfortable with Alpha-stage software. The low install friction, active maintenance, permissive license, and strong community signal make it a solid choice for prototyping or production use in teams that prefer Python over JavaScript. Not recommended if you need a stable, battle-tested framework or require a large ecosystem of third-party integrations.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low install friction with a pure-Python wheel and nine runtime dependencies.
- The project is actively maintained with a recent release (14 days ago) and strong community engagement (7006 GitHub stars), though it remains in Alpha status, so expect API changes.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions—suitable for most projects.
last release 2026-07-31 (14 days) · last repo commit 2026-08-12 · 7,006 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,108,486 downloads/mo, #4,360 on PyPI
Alternatives
Verify before relying
pip install python-fasthtml
from fasthtml.common import *
app, rt = fast_app()
@rt('/')
def get():
return Div(P('Hello World!'))
serve()- Whether the nine runtime dependencies (including uvicorn, starlette, httpx2) are all required for minimal apps or if some are optional.
- Performance characteristics and scalability limits compared to other Python web frameworks.
- Maturity of the HTMX integration and stability of the API given the Alpha status.
What it is and what it does
FastHTML is a Python web framework designed to simplify building interactive web applications by using HTML-over-the-wire with HTMX instead of traditional JavaScript frontends. It maps Python functions directly to HTTP routes and HTML elements, letting you write full-stack applications in pure Python. The framework uses starlette and uvicorn under the hood and integrates with beautifulsoup4 for HTML manipulation and httpx2 for HTTP requests.
The core idea is that your Python functions return HTML fragments, and HTMX handles swapping them into the page on the client side—eliminating the need to write JavaScript or manage a separate frontend. It ships with fastcore for functional utilities and includes support for authentication (via oauthlib), file uploads (python-multipart), and date handling (python-dateutil). The framework is still in Alpha, so the API may change, but it has active development and a growing community.
Use it for
- Build interactive web dashboards and admin panels without writing JavaScript or managing a frontend build process.
- Create real-time collaborative applications where server-side HTML generation and HTMX swaps keep the UI in sync.
- Prototype web applications quickly using Python's full ecosystem while keeping code minimal and readable.
- Add interactivity to existing HTML pages by serving partial HTML fragments in response to user actions.
- Build form-heavy applications where server-side validation and rendering logic can be expressed in pure Python.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you want to build interactive web apps in pure Python and are comfortable with Alpha-stage software.
The low install friction, active maintenance, permissive license, and strong community signal make it a solid choice for prototyping or production use in teams that prefer Python over JavaScript. Not recommended if you need a stable, battle-tested framework or require a large ecosystem of third-party integrations.
Install
python-fasthtml on PyPI
Before you install
Low install friction with a pure-Python wheel and nine runtime dependencies. The project is actively maintained with a recent release (14 days ago) and strong community engagement (7006 GitHub stars), though it remains in Alpha status, so expect API changes.
Requires Python 3.10 or later.
License in practice
Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions—suitable for most projects.
Quickstart
pip install python-fasthtml
from fasthtml.common import *
app, rt = fast_app()
@rt('/')
def get():
return Div(P('Hello World!'))
serve()
Verify before relying
- Whether the nine runtime dependencies (including uvicorn, starlette, httpx2) are all required for minimal apps or if some are optional.
- Performance characteristics and scalability limits compared to other Python web frameworks.
- Maturity of the HTMX integration and stability of the API given the Alpha status.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 9 packagesfastcorepython-dateutilstarletteoauthlibitsdangerousuvicornhttpx2python-multipartbeautifulsoup4 |
| Maintenance | Actively maintained 14 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,108,486 / month, #4,360 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersNatural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: Only |
Evidence: python_fasthtml-0.14.11-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 › “python web framework htmx”
- python-fasthtmlFastHTML is a Python web framework that builds interactive web…
- litestar-htmxIntegrates HTMX into Litestar web applications, enabling…
- jinja2-fragmentsRenders individual Jinja2 template blocks as HTML fragments instead…
Give your agent the search over MCP, or paste the wish link into any chat.
More Application Frameworks packages
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.
Install it if you're developing CLI tools, dashboards, or interactive terminal applications.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.
Install it if you need to build or connect to servers.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
See also hyperscript · litestar-htmx · django-htmx · nicegui · htpy · html5tagger · fastui · branca · sphinxcontrib-jsmath · streamlit