INNER CODE UNIT · Python
_auto_analysis_export_paths
wzn1118/AsteriaAnalyst · backend/app/main.py:184
def _auto_analysis_export_paths(payload: AutoAnalysisRequest, *, surface: str) -> tuple[Path, str]:
stamp = datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%SZ")
dataset = _safe_export_segment(payload.dataset_id, "dataset")
sheet = _safe_export_segment(payload.active_sheet or "sheet", "sheet")
part = _safe_export_segment(payload.report_part or "auto", "auto")
relative = Path("auto-analysis") / dataset / f"{stamp}-{surface}-{sheet}-{part}"
return PUBLIC_ARTIFACTS_DIR / relative, f"/storage/{relative.as_posix()}"
INTEGRATIONS = [
{
"name": "Next.js",
"repo": "https://github.com/vercel/next.js",
"purpose": "high-end front-end application shell",
},
{
"name": "FastAPI",
"repo": "https://github.com/fastapi/fastapi",