Install & Compatibility
Where this runs
tested against v2.0.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.010s · 35.3MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 4.2s · import 0.010s · 35MB
33MB installed
● package 33MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
CloudEvent
✓ from fastapi_cloudevents import CloudEvent
✗ from cloudevents.http import CloudEvent
Basic example of receiving and sending CloudEvents with FastAPI.
from fastapi import FastAPI, Request
from fastapi_cloudevents import from_event, to_event
from cloudevents.http import CloudEvent
app = FastAPI()
@app.post("/")
async def receive(request: Request):
event = from_event(request)
print(event)
return to_event(CloudEvent({"type": "example", "source": "test"}, {"message": "Hello"}))
Upgrade
Version history
2.0.2latest on PyPI · released Feb 24, 2024
Audit
Dependencies
No dependency data recorded yet.