eventiq-fastapi
FastAPI integration for eventiq
Installation
pip install eventiq-fastapi
Usage
from fastapi import FastAPI
from eventiq import Service, CloudEvent
from eventiq_fastapi import ServiceDependency, get_service_lifespan
service = Service(...)
app = FastAPI(lifespan=get_service_lifespan(service))
# possibly in dirrerent file/router, service will be injected
@app.post("/send-email")
async def send_mail(service: ServiceDependency):
await service.send({"some": "data"}, topic="commands.send-email")
Metadata
Release files for eventiq-fastapi 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| eventiq_fastapi-0.1.0.tar.gz | 9.9 kB | Without provenance | Details for eventiq_fastapi-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| eventiq_fastapi-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for eventiq_fastapi-0.1.0-py3-none-any.whl |
Total release size: 18.7 kB
Release files / eventiq_fastapi-0.1.0.tar.gz
| Download URL | eventiq_fastapi-0.1.0.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb64129444afe139102e68c8ace1035d92b6115db614d8d50f640a0e253abcf3
|
|
BLAKE2b-256 checksum How to use checksums |
1b78ed50ac07e7039c0de87d09fe64c0291174d0664b168ac5a66f812d9676cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.5
|
Release files / eventiq_fastapi-0.1.0-py3-none-any.whl
| Download URL | eventiq_fastapi-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c74ee8509a9d4bbb2a4de7b2b037f2b71f3c8493b1d61227b11cd2c6728a2c02
|
|
BLAKE2b-256 checksum How to use checksums |
6d51f3e8885ba79701a0264031c8fef93628d471284564b8ce55fbcb7e8cb519
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.5
|
Security for eventiq-fastapi 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.