siibra.retrieval.requests

Request files with decoders, lazy loading, and caching.

Functions

find_suitiable_decoder(url)

By supplying a url or a filename, obtain a suitable decoder function for siibra to digest based on predifined DECODERS.

read_as_bytesio(function, suffix, bytesio)

Helper method to provide BytesIO to methods that only takes file path and cannot handle BytesIO normally (e.g., nibabel.freesurfer.read_annot()).

try_all_connectors()

Classes

EbrainsRequest(url[, decoder, params, ...])

Implements lazy loading of HTTP Knowledge graph queries.

GitlabProxy(flavour[, instance_id])

Initialize a cached http data loader.

GitlabProxyEnum(value)

An enumeration.

HttpRequest(url[, func, msg_if_not_cached, ...])

Initialize a cached http data loader.

MultiSourcedRequest(requests)

ZipfileRequest(url, filename[, func, refresh])

Initialize a cached http data loader.

Exceptions

MultiSourceRequestException

SiibraHttpRequestError(url, status_code[, msg])