litestar icon indicating copy to clipboard operation
litestar copied to clipboard

Enhancement: Add native support for CloudEvents

Open zro00 opened this issue 2 years ago • 3 comments

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
Fund with Polar

zro00 avatar Aug 28 '23 22:08 zro00

Great suggestion!

cofin avatar Aug 29 '23 13:08 cofin

How would this look?

Goldziher avatar Sep 09 '23 06:09 Goldziher

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

JacobCoffee avatar Dec 07 '23 23:12 JacobCoffee