Files
Mrpzx 977f97995a tripocli v2.0.0:Tripo AI 3D 生成与加工 CLI(面向 Agent 与开发者,纯 Python 标准库、零第三方依赖)
覆盖文生 3D、图生 3D、多视图、批量生成,以及重拓扑、绑定、动画、智能分割、
纹理、PBR、智能 UV、部件补全、格式导出与下载。

代码组织:一个功能一个模块(tripo/features/),入口薄壳 tripocli.py。
2026-10-13 19:22:54 +08:00

31 lines
1.0 KiB
Python

"""项目详情 — inspect a project and its current asset.
tripocli project <project_id>
"""
NAME = "project"
HELP = "查看项目详情(模型地址、预览图、operator 状态)"
def add_arguments(parser):
parser.add_argument("project_id", help="项目 ID")
def run(ctx):
detail = ctx.client.project_detail(ctx.args.project_id) or {}
operator = detail.get("operator") or {}
retargets = operator.get("retarget") or []
def show():
ctx.out.line(f"项目名 : {detail.get('project_name')}")
ctx.out.line(f"项目 ID : {detail.get('id')}")
ctx.out.line(f"operator : {operator.get('operator_id')} ({operator.get('status')})")
ctx.out.line(f"模型版本 : {operator.get('model_version')}")
ctx.out.line(f"模型地址 : {detail.get('model_url')}")
if retargets:
names = ", ".join(f"{r.get('name')}({r.get('status')})" for r in retargets)
ctx.out.line(f"重定向动作 ({len(retargets)}): {names}")
ctx.out.data(detail, human=show)
return detail