litestar
litestar copied to clipboard
Enhancement: Add native support for CloudEvents
Summary
CloudEvents which is a specification for describing event data in a common way (https://cloudevents.io/). This is starting to see wider adoption within the big three cloud providers (Azure, GCP, AWS).
There is a similar project here for FastAPI: https://github.com/sasha-tkachev/fastapi-cloudevents
It would be nice if it was possible for Litestar to natively support this out of the box.
Basic Example
No response
Drawbacks and Impact
No response
Unresolved questions
No response
Funding
- If you would like to see an issue prioritized, make a pledge towards it!
- We receive the pledge once the issue is completed & verified
Great suggestion!
How would this look?
Note whoever takes this that cloudevents Python SDK by itself doesn't depend on Pydantic but it offers a [pydantic] extra.
https://github.com/cloudevents/sdk-python