Buckets:

download
raw
675 Bytes
from abc import ABC, abstractmethod
class StorageClient(ABC):
"""Abstract base class for storage clients."""
@abstractmethod
def is_authenticated(self) -> bool:
pass
@abstractmethod
def list_buckets(self) -> list[str]:
pass
@abstractmethod
def upload_object(
self, fileobj, bucket_name: str, object_name: str, rewind: bool = True
) -> dict:
pass
@abstractmethod
def generate_presigned_url(
self, bucket_name: str, object_name: str, expiration: int = 3600
) -> str:
pass
@abstractmethod
def delete_object(self, bucket_name: str, object_name: str) -> None:
pass

Xet Storage Details

Size:
675 Bytes
·
Xet hash:
dec281d8099ec2752742f328de7b700dafea11a627f0e476389a9a8369552d4b

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.