biocypher._get.Downloader
- class biocypher._get.Downloader(cache_dir: Optional[str] = None)
- __init__(cache_dir: Optional[str] = None) None
The Downloader is a class that manages 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.
Methods
__init__
([cache_dir])The Downloader is a class that manages 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.