How aheritianad/flash_fastapi works
This is a small FastAPI flash-messaging utility. A request handler adds a categorized message, retrieves and clears messages from the request session, and returns them. The implementation is limited to the flash API and a sample FastAPI app; session middleware is configured in that app. The README documents template use and HTMX interactions, but no separate integration code is present in the tree. The graph reflects the shown sample workflow and session access.
Main entry points: main.py Sample FastAPI app · flash.py Flash API and categories
Components 5
Other components
- Requesting client
- Sample FastAPI app
main.py - Flash API and categories
flash.py - Request session
- Session middleware
Connections 7
- Requesting client → Sample FastAPI app: requests route
main.py - Sample FastAPI app → Flash API and categories: adds message
main.py - Sample FastAPI app → Flash API and categories: retrieves messages
main.py - Flash API and categories → Request session: reads and clears
flash.py - Flash API and categories → Request session: writes messages
flash.py - Sample FastAPI app → Session middleware: configures
main.py - Sample FastAPI app → Requesting client: returns messages
main.py