{"categories":[{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content/2"}],"enrichment":{"capability":"FastAPI plugin that automatically parses and serializes CloudEvents in both binary and structured HTTP formats, letting you handle CloudEvents as native FastAPI request/response types.","skillfed_tags":["event-driven","cloudevents","rest-api"],"use_cases":["Build event-driven microservices that receive and emit CloudEvents over HTTP without boilerplate serialization code.","Implement webhook handlers that accept CloudEvents from external event sources in either binary or structured format.","Route incoming CloudEvents to different handlers based on the event type field using Pydantic discriminators.","Create REST APIs that emit CloudEvents as responses, automatically formatting them according to client expectations.","Integrate with event brokers or platforms (Knative, AWS EventBridge, etc.) that emit CloudEvents over HTTP."],"what_it_does":"fastapi-cloudevents is a FastAPI plugin that bridges the gap between the CloudEvents specification and FastAPI's native request/response handling. Instead of manually calling CloudEvents library functions like `to_structured()` and `from_http()`, you declare CloudEvent as a parameter type in your route handler and FastAPI automatically parses incoming requests\u2014whether they use binary format (headers prefixed with `ce-`) or structured format (JSON body)\u2014into CloudEvent objects. Responses are similarly serialized back to the appropriate format.\n\nThe plugin integrates with FastAPI's dependency injection and validation systems via pydantic-settings, so you can configure default response modes (binary or structured), custom source fields, and type-based routing using Pydantic discriminators. It handles the CloudEvents specification details transparently, making event-driven REST APIs feel like ordinary FastAPI development.","worth_installing":"Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and solves a real problem\u2014CloudEvents parsing and serialization\u2014in a way that feels natural to FastAPI developers. Use it if you're building event-driven systems that need to consume or produce CloudEvents over HTTP."},"id":"fastapi-cloudevents","links":{"html":"https://skillfed.io/packages/fastapi-cloudevents","md":"https://skillfed.io/packages/fastapi-cloudevents.md","pypi":"https://pypi.org/project/fastapi-cloudevents/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-02-24","license_spdx":null,"license_treatment":"permissive","name":"fastapi-cloudevents","python_support":"unspecified","summary":"FastAPI plugin for CloudEvents Integration"},"popularity":{"monthly_downloads":264375,"position":8340,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.0.2"}
