Add reliable file transfer helpers - #581
Open
AndreyVMarkelov wants to merge 1 commit into
Open
Conversation
AndreyVMarkelov
requested review from
KevinRK29,
cguldner,
greg-db and
rhui-dbx
August 14, 2026 23:07
AndreyVMarkelov
marked this pull request as ready for review
August 14, 2026 23:08
AndreyVMarkelov
force-pushed
the
file-transfer
branch
from
August 14, 2026 23:09
dbe0cd0 to
84eec4d
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #581 +/- ##
==========================================
+ Coverage 65.27% 65.32% +0.04%
==========================================
Files 35 36 +1
Lines 66784 67571 +787
Branches 4735 4877 +142
==========================================
+ Hits 43596 44140 +544
- Misses 23026 23179 +153
- Partials 162 252 +90
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
AndreyVMarkelov
force-pushed
the
file-transfer
branch
from
August 14, 2026 23:25
84eec4d to
46c6aa2
Compare
Introduce dropbox.file_transfer with resumable sequential and parallel uploads/downloads, content-hash validation, atomic file targets, progress reporting, and retry handling for Dropbox and requests transport failures. Add public per-request headers for files_download so ranged downloads use the SDK transport and preserve typed API errors. Keep ordinary files_download calls compatible with legacy request overrides by forwarding extra_headers only when provided. Include generator support so future spec updates retain the API. Add unit coverage for range headers, typed API errors, partial target writes, retries, offset recovery, and requests transport failures. Document the API and add a runnable file transfer example.
AndreyVMarkelov
force-pushed
the
file-transfer
branch
from
August 14, 2026 23:27
46c6aa2 to
ee25250
Compare
AndreyVMarkelov
enabled auto-merge (squash)
August 14, 2026 23:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation
.venv/bin/python -m pytest test/unit/ -q(100 passed).venv/bin/ruff check dropbox/file_transfer.py dropbox/_http.py generator/dropbox_python_client.stoneg.py test/unit/test_file_transfer.py test/unit/test_dropbox_unit.py test/unit/test_http.pygit diff --check