🚀 FastPWA
FastPWA is a minimal FastAPI extension that makes your app installable as a Progressive Web App (PWA). It handles manifest generation, service worker registration, and automatic asset injection—giving you a native-like install prompt with almost no setup.
🌟 What It Does
- 🧾 Generates a compliant webmanifest from your app metadata
- ⚙️ Registers a basic service worker for installability
- 🖼️ Discovers and injects favicon and static assets (index.css, index.js, etc.)
- 🧩 Mounts static folders and serves your HTML entrypoint
📦 Installation
pip install fastpwa
🧪 Quickstart
from fastpwa import PWA
app = PWA(title="My App", summary="Installable FastAPI app", prefix="app")
app.static_mount("static") # Mounts static assets and discovers favicon
app.register_pwa(html="static/index.html") # Registers manifest, SW, and index route
📁 Static Folder Layout
FastPWA auto-discovers and injects these assets if present:
static/
├── index.html
├── index.css
├── index.js
├── global.css
├── global.js
└── favicon.png
🧬 Manifest Customization
You can override manifest fields via register_pwa():
app.register_pwa(
html="static/index.html",
app_name="MyApp",
app_description="A simple installable app",
color="#3367D6",
background_color="#FFFFFF"
)
📜 License
MIT
Metadata
Release files for FastPWA 0.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fastpwa-0.5.3.tar.gz | 6.4 kB | Without provenance | Details for fastpwa-0.5.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fastpwa-0.5.3-py3-none-any.whl | Python 3 | none | any | Details for fastpwa-0.5.3-py3-none-any.whl |
Total release size: 13.3 kB
Release files / fastpwa-0.5.3.tar.gz
| Download URL | fastpwa-0.5.3.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
daeabc3d369812c8e9634604b890991a60caa3ba076b399af69e85356fac018e
|
|
BLAKE2b-256 checksum How to use checksums |
717b778b4fa1738f39c03d09cd5c46f8deb66efe1a830852a0b4865707d8de8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.28.0 CPython/3.14.6 Linux/6.17.0-1020-azure
|
Release files / fastpwa-0.5.3-py3-none-any.whl
| Download URL | fastpwa-0.5.3-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69f52d893f1a760b27ed50646c0e65953a938b6f3c422c580b8bee41d8a06437
|
|
BLAKE2b-256 checksum How to use checksums |
b6946fffda1bb722a41cd65041170389f41042b6ab228cfc77455eb6f62032e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.28.0 CPython/3.14.6 Linux/6.17.0-1020-azure
|
Security for FastPWA 0.5.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.