The Dapr FastAPI extension integrates Dapr's pub/sub, actors, and bindings with FastAPI applications. Version 1.17.4 supports Python >=3.10, released on 2025-09-12. Release cadence is approximately monthly.
pip install dapr-ext-fastapiVerified import paths — ran on the pinned version, not inferred.
Minimal FastAPI app with Dapr extension
Use FastAPI routes with DaprPubSubMiddleware for pub/sub.
Use DaprApp(app) instead of DaprApp() and then dapr_app.init(app).
Call dapr_app.register_actor(MyActor) after actor definition.
Add dapr_app.register_actor(YourActorClass) after actor definition.
Use from dapr.ext.fastapi import DaprApp
Only pass the FastAPI app once in the constructor: DaprApp(app).