maybe_create_remote_uploader_downloader_from_uri#
- composer.utils.maybe_create_remote_uploader_downloader_from_uri(uri, loggers)[source]#
Automatically creates a
composer.loggers.RemoteUploaderDownloader
from supported URI formats.Currently supported backends are
s3://
,oci://
, and local paths (in which caseNone
will be returned)- Parameters
uri (str) โ The path to (maybe) create a
composer.loggers.RemoteUploaderDownloader
fromloggers (list[
composer.loggers.LoggerDestination
]) โ List of the existingcomposer.loggers.LoggerDestination
s so as to not create a duplicate
- Raises
NotImplementedError โ Raises when the URI format is not supported.
- Returns
Optional[RemoteUploaderDownloader] โ Returns a
composer.loggers.RemoteUploaderDownloader
if the URI is of a supported format, otherwise None