Skip to content

v0.3.7

Compare
Choose a tag to compare
@davorrunje davorrunje released this 15 Dec 17:52
· 347 commits to main since this release
4f19d57

What's Changed

Support regular FastStream Context with FastAPI plugin

from fastapi import FastAPI
from faststream.redis.fastapi import RedisRouter, Logger

router = RedisRouter()

@router.subscriber("test")
async def handler(msg, logger: Logger):
    logger.info(msg)

app = FastAPI(lifespan=router.lifespan_context)
app.include_router(router)

Full Changelog: 0.3.6...0.3.7