maybe_create_object_store_from_uri#

composer.utils.maybe_create_object_store_from_uri(uri)[source]#

Automatically creates an composer.utils.ObjectStore from supported URI formats.

Currently supported backends are s3://, oci://, and local paths (in which case None will be returned)

Parameters

uri (str) โ€“ The path to (maybe) create an composer.utils.ObjectStore from.

Raises

NotImplementedError โ€“ Raises when the URI format is not supported.

Returns

Optional[ObjectStore] โ€“ Returns an composer.utils.ObjectStore if the URI is of a supported format, otherwise None