Integrations
Flask, FastAPI, Django, OpenTelemetry, Prometheus, Sentry, encryption, msgpack, Postgres, Redis.
Flask, FastAPI, Django, OpenTelemetry, Prometheus, Sentry, encryption, msgpack, Postgres, Redis.
flexiq offers optional extras for popular frameworks and observability tools. Install only what you need.
| Extra | Install | What you get |
|---|---|---|
| Flask | pip install flexiq[flask] | FlexiQ(app) extension, flask flexiq worker CLI |
| FastAPI | pip install flexiq[fastapi] | FlexiQRouter for instant REST API over the queue |
| Django | pip install flexiq[django] | Admin integration, management commands |
| OpenTelemetry | pip install flexiq[otel] | Distributed tracing with span-per-task |
| Prometheus | pip install flexiq[prometheus] | PrometheusMiddleware, queue depth gauges, /metrics server |
| Sentry | pip install flexiq[sentry] | SentryMiddleware with auto error capture and task tags |
| Encryption | pip install flexiq[encryption] | EncryptedSerializer for at-rest payload encryption |
| MsgPack | pip install flexiq[msgpack] | MsgPackSerializer for compact binary serialization |
| Postgres | pip install flexiq[postgres] | Multi-machine workers via PostgreSQL backend |
| Redis | pip install flexiq[redis] | Redis storage backend |
Postgres and Redis here are shared storage backends — the queue itself, used to run workers across multiple machines. They are not message brokers (a separate server such as Redis or RabbitMQ that holds pending jobs): flexiq never needs a separate broker regardless of backend.
All middleware-based integrations (OpenTelemetryMiddleware,
PrometheusMiddleware, SentryMiddleware) compose together:
from flexiq import Queue
from flexiq.contrib.otel import OpenTelemetryMiddleware
from flexiq.contrib.prometheus import PrometheusMiddleware
from flexiq.contrib.sentry import SentryMiddleware
queue = Queue(
db_path="myapp.db",
middleware=[
OpenTelemetryMiddleware(),
PrometheusMiddleware(),
SentryMiddleware(),
],
)