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