squirrel.artifact_manager.drivers

Module Contents

Classes

DirectoryDriver

A :py:class`MapDriver` implementation, which uses an :py:class`AbstractStore` instance to retrieve its items.

class squirrel.artifact_manager.drivers.DirectoryDriver(url: str, storage_options: Optional[dict[str, Any]] = None, **kwargs)

Bases: squirrel.driver.store.StoreDriver

A :py:class`MapDriver` implementation, which uses an :py:class`AbstractStore` instance to retrieve its items.

The store used by the driver can be accessed via the :py:property:`store` property.

Initializes DirectoryDriver iterating over all files in the root directory.

Parameters
  • url (str) – the root url of the store

  • storage_options (dict[str, Any], optional) – Keyword arguments passed to filesystem handler.

  • **kwargs – Keyword arguments to pass to the super class initializer.

name = directory
property storesquirrel.store.AbstractStore

Store that is used by the driver.