43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
# 智念城市知识图谱管理系统 —— Python 后端依赖
|
||
# 安装: pip3 install -r requirements.txt
|
||
# Python 3.11+ (开发环境 3.13)
|
||
|
||
fastapi==0.136.1
|
||
uvicorn==0.47.0
|
||
starlette==1.0.0
|
||
|
||
# 数据库 (PostgreSQL kg_admin schema)
|
||
psycopg==3.3.4
|
||
psycopg-pool==3.3.1
|
||
|
||
# 配置 / 校验
|
||
pydantic==2.13.0
|
||
pydantic-settings==2.14.1
|
||
|
||
# 图数据库 (FalkorDB on Redis)
|
||
falkordb==1.6.1
|
||
|
||
# 空间索引 (H3 网格;PostGIS 由 PostgreSQL 扩展提供)
|
||
h3==4.4.2
|
||
|
||
# HTTP 客户端 (LLM 调用 / 维基 API)
|
||
httpx==0.28.1
|
||
requests==2.32.5
|
||
python-multipart==0.0.28
|
||
markitdown[all]==0.1.6
|
||
pymupdf4llm==1.27.2.3 # 结构化 PDF→Markdown(版式/表格感知,替代 markitdown 纯文本抽取)
|
||
python-docx==1.2.0 # DOCX→Markdown 保留表格结构
|
||
olefile==0.47 # 损坏/textutil 读不了的老 .doc 直接捞 WordDocument 流正文
|
||
|
||
# 鉴权
|
||
bcrypt==4.1.3
|
||
python-jose==3.3.0
|
||
|
||
# 浏览器采集 (web_agent / xhs_agent / douyin_agent 隐身抓取)
|
||
# 装完需再跑: python3 -m playwright install chromium
|
||
playwright==1.59.0
|
||
|
||
# 阿里云 OCR (ocr-api.cn-hangzhou.aliyuncs.com 2021-07-07)
|
||
# 提供 RecognizePassport 等证件识别能力;客户端会自动拉取 tea-openapi / tea-util
|
||
alibabacloud_ocr_api20210707==3.1.2
|