Skip to content

Internal storage

Module superwise.utils.storage.internal_storage.internal_storage

Classes

CloudProvider(value, names=None, *, module=None, qualname=None, type=None, start=1) An enumeration.

Ancestors (in MRO)

  • enum.Enum

Class variables

AWS

AZURE

GCP

InternalStorage(superwise_web_client: superwise.utils.client.Client) Helper class that provides a standard way to create an ABC using inheritance.

Ancestors (in MRO)

  • abc.ABC

Descendants

  • superwise.utils.storage.internal_storage.aws.AWSInternalStorage
  • superwise.utils.storage.internal_storage.azure.AzureInternalStorage
  • superwise.utils.storage.internal_storage.gcs.GCSInternalStorage

Static methods

generate_file_name(extension: str, prefix: str = None)

Methods

upload(self, blob_path: str, content: str) Description:

Upload a file's content to Superwise's internal blob storage

Args:

blob_path: file path to upload to

content: the content of the file