Skip to main content
Flask logo

Flask

z4j-flask · Upstream project

Flask extension pattern. One line to install.

Standard Flask extension shape (Z4J(app)). Discovers Celery or Dramatiq tasks from your extensions/ layout. Reads config from app.config. No monkey-patching, no magic.

Install

bash
pip install z4j-flask[celery]

Wire it in

python
from flask import Flask
from z4j_flask import Z4J

app = Flask(__name__)
app.config.from_prefixed_env("Z4J_")
z4j = Z4J(app)
What you get

Flask-specific features

Flask extension pattern
Works with Flask-Celery / Flask-Dramatiq
config.from_prefixed_env support
Blueprint-friendly
Gunicorn-safe initialization
Engine pairings

Flask works with every z4j engine

The framework adapter handles lifecycle and config. Any engine adapter slots in alongside.

Other platforms

See also

Get started with z4j + Flask