Represents a resource to download, extract, or both.
__init__( url=None, extract_method=None, path=None )
str, the URL at which to download the resource.
ExtractMethodto be used to extract resource. If not set, will be guessed from downloaded file name
str, path of resource on local disk. Can be None if resource has not be downloaded yet. In such case,
urlmust be set.
Name of extracted archive (file or directory).
ExtractMethod to use on resource. Cannot be None.
Returns the name (
str) of the extraction method.
Name of downloaded file (not as downloaded, but as stored).
Returns path (
str) of INFO file associated with resource.
Returns whether the resource exists locally, at
write_info_file( *args, **kwargs )
Write the INFO file next to local file.
Although the method is synchronized, there is still a risk two processes
running at the same time overlap here. Risk accepted, since potentially lost
dataset_name) is only for human consumption.
dataset_name: data used to dl the file.
original_fname: name of file as downloaded.