Update dependency gdown to v6#693
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
fa05e9e to
aea54d9
Compare
d20a58c to
0d4dc55
Compare
557230c to
4dbe5ee
Compare
205ec76 to
7cd63f1
Compare
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.
This PR contains the following updates:
>=5.2.0,<6→>=6.1,<7Release Notes
wkentaro/gdown (gdown)
v6.1.0Compare Source
This release adds a new
--jsonflag for inspecting Google Drive file and folder contents without downloading them.Highlights
--jsonflag lists the file or folder contents as a JSON array on stdout instead of downloading, so you can resolve filenames and IDs before fetching anything. It is in beta and its output format may change in a future release.Features
Add a
--jsonflag that prints file or folder contents as a JSON array of{"url", "path"}entries instead of downloading. Paths use POSIX separators on all platforms, and the flag cannot be combined with-O/--output. (#460, #463)Add a
skip_downloadparameter todownload()that resolves the target filename and ID without fetching the file, returning aGoogleDriveFileToDownload. (#463)--jsonnow prints a one-time beta warning to stderr, which--quietsuppresses. (#465)Other
urllib3from 2.6.3 to 2.7.0. (#457)idnafrom 3.11 to 3.15. (#459)AGENTS.md,CLAUDE.md,docs/agents/). (#462)v6.0.0Compare Source
A lot has changed since v5.2.1 back in January. 33 pull requests (109 commits) went into this release, touching nearly every part of the codebase.
Highlights
gdown --folder/download_folder()now supports folders with more than 50 filesdownload()raisesDownloadErroron failure instead of returningNoneprogressparameter indownload()extractall()(GHSA-76hw-p97h-883f)Most users should be able to upgrade without issues. The one change that will likely need code updates is the switch from returning
Noneto raisingDownloadErroron failure.Breaking changes
download()anddownload_folder()now raiseDownloadErrorinstead of returningNone(#451)Previously,
download()anddownload_folder()returnedNonewhen a download failed. Now, they raiseDownloadError(or its subclassFileURLRetrievalError).If your code looks like this:
Change it to:
fuzzyparameter and--fuzzyCLI flag removed (#455)Previously, you needed
fuzzy=True(or--fuzzy) to download from Google Drive share links likehttps://drive.google.com/file/d/FILE_ID/view. gdown now always extracts the file ID from any Google Drive URL format. Just pass the URL directly.--remaining-okflag andFolderContentsMaximumLimitErrorremoved (#453)Folder downloads used to be limited to 50 files due to a Google Drive API constraint, and
--remaining-oklet you proceed with a partial download. gdown now uses theembeddedfolderviewendpoint, which has no file count limit. The flag and exception class are no longer needed.md5parameter removed fromcached_download()(#450)The
md5parameter was deprecated in v5. Use thehashparameter instead:--idCLI flag,md5sum(), andassert_md5sum()removed (#448, #449)These were deprecated in v5. Use
gdown.parse_url()for URL parsing andhashlibfor checksum verification.Python 3.8 and 3.9 are no longer supported (#423)
gdown now requires Python 3.10 or later. Python 3.10 through 3.14 are tested in CI.
Security fixes
Arbitrary file write via path traversal in
extractall()(GHSA-76hw-p97h-883f)gdown.extractall()now validates that archive members stay within the target directory, preventing zip or tar archives from writing files outside the extraction path via../traversal, absolute paths, or symlinks. On Python 3.12+, extraction uses thedatafilter. (#445, #446, #447)Features
progressparameter indownload()for hooking into download progress (#427)embeddedfolderviewendpoint (#453)Bug fixes
Noneinstead ofFalsefromparse_url()for non-Google-Drive URLs (#434)download_folder()(#444)Enhancements
py.typedmarker for PEP 561 support (#436)uv,ruff,ty, andhatchlingwith VCS versioning (#423, #424, #425)Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.