dropbox.file_transfer – Reliable file transfers
Reliable upload and download helpers for Dropbox files.
The generated files_* methods remain the low-level API. This module adds a
small transfer layer modeled after the Go SDK’s filetransfer package:
download targets, upload sources, retries, progress callbacks, content
validation, and optional parallel ranged transfers.
- class dropbox.file_transfer.BytesTarget
Bases:
objectIn-memory download target.
- class dropbox.file_transfer.DownloadInfo(size: int, content_hash: str = None)
Bases:
object
- class dropbox.file_transfer.DownloadOptions(max_attempts: int = 0, parallel_downloads: int = 0, progress: object = None)
Bases:
object
- class dropbox.file_transfer.DownloadProgress(bytes_committed: int, total_bytes: int)
Bases:
object
- class dropbox.file_transfer.DownloadResult(metadata: dropbox.files.FileMetadata)
Bases:
object
- class dropbox.file_transfer.FileTarget(path)
Bases:
objectFile download target that commits by atomically renaming a temp file.
- exception dropbox.file_transfer.TransferError
Bases:
ExceptionRaised when transfer setup or validation fails.
- class dropbox.file_transfer.UploadOptions(max_attempts: int = 0, parallel_uploads: int = 0, progress: object = None)
Bases:
object
- class dropbox.file_transfer.UploadProgress(bytes_committed: int, total_bytes: int)
Bases:
object
- class dropbox.file_transfer.UploadResult(metadata: dropbox.files.FileMetadata)
Bases:
object