Skip to content

Commit bcd1bc1

Browse files
authored
feat: Update Python version requirements and refine dependency constraints in configuration (#123)
* feat: Implement data synthesis task management with database models and API endpoints * feat: Update Python version requirements and refine dependency constraints in configuration
1 parent 8b164cb commit bcd1bc1

File tree

3 files changed

+3145
-55
lines changed

3 files changed

+3145
-55
lines changed

runtime/datamate-python/app/main.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
1-
from fastapi import FastAPI, Request, HTTPException, status
2-
from fastapi.middleware.cors import CORSMiddleware
3-
from fastapi.exceptions import RequestValidationError
4-
from starlette.exceptions import HTTPException as StarletteHTTPException
5-
61
from contextlib import asynccontextmanager
72
from typing import Dict, Any
3+
4+
from fastapi import FastAPI, HTTPException
5+
from fastapi.exceptions import RequestValidationError
86
from sqlalchemy import text
7+
from starlette.exceptions import HTTPException as StarletteHTTPException
98

109
from .core.config import settings
1110
from .core.logging import setup_logging, get_logger
12-
from .db.session import engine, AsyncSessionLocal
13-
from .module.shared.schema import StandardResponse
14-
from .module import router
11+
from .db.session import AsyncSessionLocal
1512
from .exception import (
1613
starlette_http_exception_handler,
1714
fastapi_http_exception_handler,
1815
validation_exception_handler,
1916
general_exception_handler
2017
)
18+
from .module import router
19+
from .module.shared.schema import StandardResponse
2120

2221
setup_logging()
2322
logger = get_logger(__name__)

0 commit comments

Comments
 (0)