lentiq.storage_wrappers.s3_wrapper module
from lentiq.storage_wrappers.generic_storage_wrapper import GenericStorageWrapper class S3Wrapper(GenericStorageWrapper): pass
Classes
class S3Wrapper
Helper class that provides a standard way to create an ABC using inheritance.
class S3Wrapper(GenericStorageWrapper): pass
Ancestors (in MRO)
- S3Wrapper
- lentiq.storage_wrappers.generic_storage_wrapper.GenericStorageWrapper
- abc.ABC
- builtins.object
Static methods
def __init__(
self, fs, bucket_uri)
Initialize self. See help(type(self)) for accurate signature.
def __init__(self, fs, bucket_uri): self._fs = fs self._bucket_uri = bucket_uri
def create_directory(
self, remote_path, create_all=False)
@abstractmethod def create_directory(self, remote_path, create_all=False): pass
def file_exists(
self, remote_path)
@abstractmethod def file_exists(self, remote_path): pass
def get(
self, remote_path, local_path=None)
@abstractmethod def get(self, remote_path, local_path=None): pass
def get_file(
self, remote_path, file_obj)
@abstractmethod def get_file(self, remote_path, file_obj): pass
def get_file_as_string(
self, remote_path)
@abstractmethod def get_file_as_string(self, remote_path): pass
def get_file_size(
self, remote_path)
@abstractmethod def get_file_size(self, remote_path): pass
def list_directory(
self, remote_path, extended=False)
@abstractmethod def list_directory(self, remote_path, extended=False): pass
def ls(
self, remote_path, extended=False)
@abstractmethod def ls(self, remote_path, extended=False): pass
def mkdir(
self, remote_path, create_all=False)
@abstractmethod def mkdir(self, remote_path, create_all=False): pass
def open_file(
self, remote_path, mode)
@abstractmethod def open_file(self, remote_path, mode): pass
def put(
self, path_or_object, remote_path)
@abstractmethod def put(self, path_or_object, remote_path): pass
def put_file(
self, file_obj, remote_path, overwrite=False)
@abstractmethod def put_file(self, file_obj, remote_path, overwrite=False): pass
def put_file_from_local(
self, local_path, remote_path, overwrite=False)
@abstractmethod def put_file_from_local(self, local_path, remote_path, overwrite=False): pass
def put_file_from_string(
self, s, remote_path, overwrite=False)
@abstractmethod def put_file_from_string(self, s, remote_path, overwrite=False): pass