Buckets:

download
raw
796 Bytes
_s3_client = None
def get_s3_client():
global _s3_client
if _s3_client is None:
import boto3
import os
_s3_client = boto3.client(
"s3",
aws_access_key_id=os.environ.get("AWS_ACCESS_KEY_ID"),
aws_secret_access_key=os.environ.get("AWS_SECRET_ACCESS_KEY"),
region_name=os.environ.get("AWS_REGION"),
)
return _s3_client
_blob_service_client = None
def get_blob_service_client():
global _blob_service_client
if _blob_service_client is None:
from azure.storage.blob import BlobServiceClient
import os
_blob_service_client = BlobServiceClient.from_connection_string(
os.environ.get("AZURE_STORAGE_CONNECTION_STRING")
)
return _blob_service_client

Xet Storage Details

Size:
796 Bytes
·
Xet hash:
6dcb25efb6026a45eb553fbbfb254c444a5cedfacb6c931fdda0883944d1fa01

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