biocypher._get.Resource
- class biocypher._get.Resource(name: str, url_s: str | list[str], lifetime: int = 0)
- __init__(name: str, url_s: str | list[str], lifetime: int = 0)
A Resource is a file, a list of files, an API request, or a list of API requests, any of which can be downloaded from the given URL(s) and cached locally. This class implements checks of the minimum requirements for a resource, to be implemented by a biocypher adapter.
- Parameters:
name (str) – The name of the resource.
url_s (str | list[str]) – The URL or URLs of the resource.
lifetime (int) – The lifetime of the resource in days. If 0, the resource is considered to be permanent.
Methods
__init__
(name, url_s[, lifetime])A Resource is a file, a list of files, an API request, or a list of API requests, any of which can be downloaded from the given URL(s) and cached locally.