caterva2.Client.download#
- Client.download(dataset, localpath=None)#
Downloads a dataset to local storage.
Note: If the dataset is a regular file and Blosc2 is installed, it will be downloaded and decompressed. Otherwise, it will remain compressed in its .b2 format.
- Parameters:
- Returns:
The path to the downloaded file.
- Return type:
Path
Examples
>>> import caterva2 as cat2 >>> path = 'example/ds-2d-fields.b2nd' >>> client = cat2.Client('https://demo.caterva2.net') >>> client.download(path) PosixPath('example/ds-2d-fields.b2nd')