store.backends.http_simple_store

Attributes

logger

Classes

HTTPSimpleStoreResourceInfo

HTTPSimpleStore

Module Contents

store.backends.http_simple_store.logger
class store.backends.http_simple_store.HTTPSimpleStoreResourceInfo(url: str, sha: str)

Bases: e3.store.backends.base.ResourceInfo

url
sha
verify(resource_path: str) bool
property uid: str
class store.backends.http_simple_store.HTTPSimpleStore

Bases: e3.store.backends.base.Store

get_resource_metadata(query: dict[str, str]) HTTPSimpleStoreResourceInfo

Return resource metadata directly computed from the query.

There is no remote server involved here.

Parameters:

query – a dict containing two keys ‘sha’ and ‘url’. sha is the sha1sum of the resource and url is the remote url

download_resource_content(metadata: e3.store.backends.base.ResourceInfo, dest: str) str | None

Download a resource.

Parameters:
  • metadata – metadata associated with the resource to download

  • dest – where to download the resource

Returns:

the path to the downloaded resource