package swhid
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Swhid.Download
Source
The base URL of the software heritage instance used, defaults to https://archive.softwareheritage.org
.
Same as content
but expects an object identifier hash directly.
For a given content identifier, compute an URL from which the content can be downloaded.
Same as directory
but expects an object identifier hash directly.
For a given directory identifier, compute an URL from which the directory can be downloaded.
Same as revision
but expects an object identifier hash directly.
For a given revision identifier, compute an URL from which the revision can be downloaded.
Same as release
but expects an object identifier hash directly.
For a given release identifier, compute an URL from which the release can be downloaded.
Same as snapshot
but expects an object identifier hash directly.
For a given snapshot identifier, compute a list of URL from which the snapshot's branches can be downloaded.
For any object identifier, compute a list of URLs from which the object can be downloaded. For all kind of object, the list should contain a single URL except for snapshot objects which may lead to a list of many URLs (one URL per branch). In the snapshot branch, if a single error is encountered, then the result will be an Error
type with the list of all errors, and no URL is returned (even if we succeeded to compute some of them).