{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/4"}],"enrichment":{"capability":"Fastapi-events is an event dispatching and handling library for FastAPI and Starlette that lets you emit events anywhere in your code and process them asynchronously after responses are sent.","skillfed_tags":["event-driven","async-first","middleware"],"use_cases":["Send confirmation emails or notifications after an API request completes without delaying the response","Emit domain events for audit logging or analytics after a database write","Chain events: have one handler dispatch additional events based on the first event","Pipe events to remote queues (AWS SQS, GCP Pub/Sub) for distributed processing","Validate event payloads with Pydantic schemas before handlers execute"],"what_it_does":"Fastapi-events is a middleware-based library that decouples event emission from event handling in FastAPI and Starlette applications. You register handlers (local, AWS, GCP, or custom) with the middleware, then call dispatch() anywhere in your request handlers to emit events. The library guarantees that handlers run after the response is sent, so event processing never blocks client responses.\n\nThe package supports Pydantic model validation for event payloads, event chaining (dispatching events within handlers), OpenTelemetry instrumentation, and FastAPI dependency injection in local handlers. Events can be dispatched as plain dicts or as Pydantic models, and handlers can be synchronous or async coroutines.","worth_installing":"Yes, if you need post-response event handling in FastAPI or Starlette. The library is stable, has no runtime dependencies, and solves a real problem (async event processing without response delay). The dormant maintenance status is a minor concern\u2014verify compatibility with your FastAPI version before adopting, but the straightforward API and Pydantic integration make it a solid choice for event-driven patterns."},"id":"fastapi-events","links":{"html":"https://skillfed.io/packages/fastapi-events","md":"https://skillfed.io/packages/fastapi-events.md","pypi":"https://pypi.org/project/fastapi-events/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-12-21","license_spdx":null,"license_treatment":"permissive","name":"fastapi-events","python_support":"supports_current","summary":"Event dispatching library for FastAPI"},"popularity":{"monthly_downloads":219361,"position":9327,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.12.2"}
