store.backends.http_simple_store
================================

.. py:module:: store.backends.http_simple_store


Attributes
----------

.. autoapisummary::

   store.backends.http_simple_store.logger


Classes
-------

.. autoapisummary::

   store.backends.http_simple_store.HTTPSimpleStoreResourceInfo
   store.backends.http_simple_store.HTTPSimpleStore


Module Contents
---------------

.. py:data:: logger

.. py:class:: HTTPSimpleStoreResourceInfo(url: str, sha: str)

   Bases: :py:obj:`e3.store.backends.base.ResourceInfo`


   .. py:attribute:: url


   .. py:attribute:: sha


   .. py:method:: verify(resource_path: str) -> bool


   .. py:property:: uid
      :type: str



.. py:class:: HTTPSimpleStore

   Bases: :py:obj:`e3.store.backends.base.Store`


   .. py:method:: get_resource_metadata(query: dict[str, str]) -> HTTPSimpleStoreResourceInfo

      Return resource metadata directly computed from the query.

      There is no remote server involved here.

      :param query: a dict containing two keys 'sha' and 'url'. sha is the
          sha1sum of the resource and url is the remote url



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

      Download a resource.

      :param metadata: metadata associated with the resource to download
      :param dest: where to download the resource
      :return: the path to the downloaded resource



