Freezes a Flask application into a set of static files. Version 1.0.2 is current (released 2024) and supports Python >=3.8 with Flask 2 and 3. The library follows a stable release cadence.
pip install frozen-flaskVerified import paths — ran on the pinned version, not inferred.
Basic usage: create a Flask app, attach Freezer, and call freeze().
Use Python >=3.8 and Flask >=2.
Use `FREEZER_DESTINATION_DIR` if using Frozen-Flask 1.x.
Ensure all static assets are linked from pages that are discoverable by the freezer.
Use `@freezer.register_generator` to explicitly add URLs that are not discovered by crawling.
Use 'from flask_frozen import Freezer'. Package name is frozen-flask, module is flask_frozen.
Ensure you have at least one route decorated with @app.route and that the app is properly configured.
Set FREEZER_DESTINATION_DIR to an existing directory or let the freezer create it (default is 'build').