google-api-python-client icon indicating copy to clipboard operation
google-api-python-client copied to clipboard

feat: handling for partial downlads

Open coanghel opened this issue 1 year ago • 2 comments

  • [x] Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • [x] Ensure the tests and linter pass Used nox -s scripts-3.9 , also manually ran test_http.py
  • [x] Code coverage does not decrease (if any source code was changed) No change before/after with scripts-3.9
  • [x] Appropriate docs were updated (if necessary)

Added an optional start parameter to the constructor of MediaIoBaseDownload() to allow for resuming a download from a certain byte. If not provided, MediaIoBaseDownload() will continue to function as it does currently and start the download from byte 0.

Fixes #2309 🦕

coanghel avatar Jan 04 '24 20:01 coanghel

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Jan 04 '24 20:01 google-cla[bot]

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot https://conventionalcommits.org/