You need to enable JavaScript to run this app.
Torch Object Storage

Torch Object Storage

Copy page
Download PDF
Upload object
Upload object overview (Python SDK)
Copy page
Download PDF
Upload object overview (Python SDK)
In TOS, the basic unit of data storage is a file. The TOS Python SDK provides a rich way to upload objects.​
Upload method description​
  • Append Upload (Python SDK): The size of the added object cannot be greater than 5GiB, and supports progress bars and client side speed limits.​
  • Shard Upload (Python SDK): Except for the last sharding, other sharding sizes need to be greater than or equal to 5MiB, the number range of the uploaded sharding is [1,10000], and it supports progress bars and client side speed limits.​
  • Breakpoint Resumption (Python SDK): Support concurrency, breakpoint continuation, custom sharding size, event callback, progress bar, cancellation mechanism, this interface is recommended for large file uploads.​
Last updated: 2025.09.17 18:22:10