D4 · Implementation · PySidecar
Python 侧车实现
pysidecar · FastAPI · AI / ML / 数据分析辅助服务
10
标准模板
FastAPI
框架
Sidecar
部署形态
D4 · PySidecar · Python 侧车实现
摘要
本子项目与 AlgoDepartment/04_development/pysidecar/ 1:1 mirror。
定位:C# 后端的 Python 侧车服务,承担 AI / ML / 复杂数据分析等不适合在 .NET 中完成的任务。
骨架版 · 内容待 AI+工程师填充
10 份标准模板将由 实现批 2(Python 栈)完成。
10 份标准模板(实现批 2)
| # | 文档 | 内容要点 | 状态 |
|---|---|---|---|
| 01 | README.md |
uvicorn 启动 · 端口约定 · venv |
🔴 待建 |
| 02 | architecture.md |
FastAPI 分层 · Sidecar 与 Backend 通信模式 | 🔴 待建 |
| 03 | api-internal.md |
FastAPI 路由清单 · Pydantic schema | 🔴 待建 |
| 04 | data-flow.md |
请求生命周期 · 异步 vs 同步 | 🔴 待建 |
| 05 | module-list.md |
AI / ML / 分析模块清单 | 🔴 待建 |
| 06 | config.md |
.env · 模型路径配置 · 日志配置 |
🔴 待建 |
| 07 | dependencies.md |
FastAPI · uvicorn · numpy · 可选 PyTorch | 🔴 待建 |
| 08 | build.md |
pip install -e . · Docker 镜像(可选) |
🔴 待建 |
| 09 | debugging.md |
pdb · FastAPI interactive docs | 🔴 待建 |
| 10 | migration.md |
Python 3.x 升级 · 模型版本升级剧本 | 🔴 待建 |
相关
- D4 实现级总览
- D3 · Backend 架构(Sidecar 上下游)
版本历史
| 版本 | 日期 | 变更 |
|---|---|---|
| v1.0-draft | 2026-05-06 | 骨架建立 · 等待实现批 2 填充 |
D4 · PySidecar · v1.0-draft · 2026-05-06 · © Xisound Inc.