biocypher._get.Downloader
- class biocypher._get.Downloader(cache_dir: Optional[str] = None)
- __init__(cache_dir: Optional[str] = None) None
A downloader is a collection of resources that can be downloaded and cached locally. It manages the lifetime of downloaded resources by keeping a JSON record of the download date of each resource.
- Parameters:
cache_dir (str) – The directory where the resources are cached. If not given, a temporary directory is created.
- Returns:
The downloader object.
- Return type:
Methods
__init__
([cache_dir])A downloader is a collection of resources that can be downloaded and cached locally.
download
(*resources)Download one or multiple resources.
get_cached_version
(resource)Get the cached version of a resource.