How kartik-nighania/dhs-2026-session-demo works
reports-service is a small FastAPI application. A client requests either report rows as JSON or a CSV export; the matching handler checks the in-memory report mapping and returns the result. The two routes are separate outputs over shared data, not sequential stages. The export implementation derives columns from the first row, so the README’s export capability is present, but empty reports are not handled successfully. The graph reflects the sampled route and data code; no persistent store or external integration is shown.
Main entry points: main.py JSON report route · data.py In-memory reports
Components 4
Other components
- Client
- JSON report route
app/main.py - CSV export route
app/main.py - In-memory reports
app/data.py
Connections 4
- Client → JSON report route: requests JSON
README.md - Client → CSV export route: requests CSV
README.md - JSON report route → In-memory reports: reads reports
app/main.py - CSV export route → In-memory reports: reads reports
app/main.py