CACHE_DURATION_IN_SECONDS
1 dayCloudUploadSettings Objects
encord.http.constants.RequestsSettings defined during
:class:encord.EncordUserClient creation.
max_retries
Maximum number of allowed retries when uploading a file.backoff_factor
Factor used to calculate exponential backoff between retries. The delay before each retry is computed as:backoff_factor * (2 ** (retry_number - 1)).
allow_failures
Whether to allow partial failures during upload. If set to True, the upload will proceed even if some items fail after all retries. Failed uploads will be logged, and the process will continue. This is useful for large batch uploads where a few failures are acceptable.get_batches
iterableList - The input list to be split.nint - The maximum size of each batch.
List[List]- A list of lists where each sublist represents a batch.
itertools.batched in Python 3.12+.
UploadToSignedUrlFailure Objects
exception
The exception instance raised during the failed upload.file_path
Path to the file that failed to upload.title
Title or identifier associated with the file.signed_url
The signed URL that the file upload was attempted against.upload_to_signed_url_list_for_single_file
failuresList[UploadToSignedUrlFailure] - A list to append failures to.file_pathUnion[str, Path] - Path of the file to upload.titlestr - Title or identifier for the file.signed_urlstr - The signed URL to upload the file to.upload_item_typeStorageItemType - The type of the file being uploaded.max_retriesint - Maximum number of retries in case of failure.backoff_factorfloat - Backoff factor for retry delays.
UploadPresignedUrlsGetParams Objects
count
Number of presigned URLs to request, typically matching the batch size of files.upload_item_type
The type of item being uploaded (e.g., IMAGE, VIDEO, AUDIO, DICOM).upload_to_signed_url_list
file_pathsIterable[Union[str, Path]] - Paths of files to upload.configBaseConfig - Configuration object with request settings.api_clientApiClient - API client used to fetch presigned URLs.upload_item_typeStorageItemType - Type of items being uploaded.cloud_upload_settingsCloudUploadSettings - Upload configuration.
List[Dict]- A list of dictionaries containing upload metadata:data_hash(str): Unique identifier for the file.file_link(str): Link to the uploaded file in storage.title(str): File name or title.
EncordException- If any file path does not exist.CloudUploadError- If uploads fail andallow_failuresis False.

