MCPcopy Create free account
hub / github.com/VAST-AI-Research/tripo-python-sdk / _v3_upload_file

Method _v3_upload_file

tripo3d/client.py:113–120  ·  view source on GitHub ↗

Upload via apiv3 POST /v3/files and return file_ token.

(self, file_path: str)

Source from the content-addressed store, hash-verified

111 return await self._v3_impl._request(method, path, json_data=json_data)
112
113 async def _v3_upload_file(self, file_path: str) -> str:
114 """Upload via apiv3 POST /v3/files and return file_<uuid> token."""
115 return await self._v3_impl.upload_multipart(
116 "/v3/files",
117 file_path,
118 field_name="file",
119 response_token_key="file_token",
120 )
121
122 async def _v3_get_task(self, task_id: str) -> Dict[str, Any]:
123 """Query task via apiv3 GET /v3/tasks/{id}."""

Callers 1

mesh_segmentationMethod · 0.95

Calls 1

upload_multipartMethod · 0.45

Tested by

no test coverage detected