Code reference¶
Utilities for pooch.
Functions
|
Instantiate a data repository instance from a given DOI. |
|
Follow a DOI link to resolve the URL of the archive. |
|
Retry func until |
- transport_data.util.pooch.doi_to_repository(doi: str) DataRepository[source]¶
Instantiate a data repository instance from a given DOI.
This version differs from the upstream version in using
doi_to_url()andZenodoRepositoryfrom the current module.
- transport_data.util.pooch.doi_to_url(doi: str) str[source]¶
Follow a DOI link to resolve the URL of the archive.
This version differs from the upstream version in only making a single request, to doi.org. The HTTP 302 (redirect) response has a “location” header that gives the resolved URL for the DOI; this is returned directly and not queried.
- transport_data.util.pooch.retry(func: Callable, check: Callable)[source]¶
Retry func until
check(func())returnsTrue.
Classes
|
|
|
|
|
Custom version of |