File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"""FastAPI API routes for file processing and conversion."""
22
3+ # Standard library
34import asyncio
45import io
5- # Standard library
66import logging
77import os
88import zipfile
99from typing import Optional
1010
1111# Third-party
1212from azure .monitor .opentelemetry import configure_azure_monitor
13- from fastapi .responses import Response
14- from opentelemetry import trace
15- from opentelemetry .trace import Status , StatusCode
16-
17- # Local imports
18- from api .auth .auth_utils import get_authenticated_user
19- from api .event_utils import track_event_if_configured
20- from api .status_updates import app_connection_manager , close_connection
21- from sql_agents .process_batch import process_batch_async
22-
23- from common .logger .app_logger import AppLogger
24- from common .services .batch_service import BatchService
25-
2613from fastapi import (
2714 APIRouter ,
2815 File ,
3421 WebSocketDisconnect ,
3522)
3623from fastapi .responses import Response
24+ from opentelemetry import trace
25+ from opentelemetry .trace import Status , StatusCode
26+
27+ # Local application
28+ from api .auth .auth_utils import get_authenticated_user
29+ from api .event_utils import track_event_if_configured
30+ from api .status_updates import app_connection_manager , close_connection
31+ from common .logger .app_logger import AppLogger
32+ from common .services .batch_service import BatchService
33+ from sql_agents .process_batch import process_batch_async
34+
3735
3836router = APIRouter ()
3937logger = AppLogger ("APIRoutes" )
You can’t perform that action at this time.
0 commit comments