File class#

A file is either a Blosc2 dataset or a regular file on a root repository.

File(name, root, urlbase[, auth_cookie])

Represents a file, which can be a Blosc2 dataset or a regular file on a root repository.

File.__getitem__(slice_)

Retrieves a slice of the dataset.

File.get_download_url()

Retrieves the download URL for the file.

File.fetch([slice_])

Fetches a slice of the dataset.

File.download([localpath])

Downloads the file to storage.

File.remove()

Removes the file from the remote repository.

File.move(dst)

Moves the file to a new location.

File.copy(dst)

Copies the file to a new location.

File.vlmeta

Returns a mapping of metalayer names to their respective values.