tfds.download.Resource
Stay organized with collections
Save and categorize content based on your preferences.
Represents a resource to download, extract, or both.
tfds.download.Resource(
*,
url: (str | None) = None,
extract_method: (tfds.download.ExtractMethod | None) = None,
path: (epath.PathLike | None) = None,
relative_download_dir: tfds.typing.PathLike = ''
)
Args |
url
|
The URL at which to download the resource.
|
extract_method
|
ExtractMethod to be used to extract resource. If not
set, will be guessed from downloaded file name original_fname.
|
path
|
Path of resource on local disk. Can be None if resource has not be
downloaded yet. In such case, url must be set.
|
relative_download_dir
|
Optional directory for downloading relative to
download_dir.
|
Attributes |
extract_method
|
Returns ExtractMethod to use on resource.
|
url
|
Returns the URL at which to download the resource.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-10-31 UTC.
[null,null,["Last updated 2026-10-31 UTC."],[],[]]