Skip to content

Module API.s3

Variables

AWS_ACCESS_KEY_ID
AWS_REGION
AWS_SECRET_ACCESS_KEY
BUCKET_NAME
RATE_LIMIT_PER_MIN
paginator
router
s3
session

Functions

check_object_existence

def check_object_existence(
    bucket_name,
    file_path
)
Async function to check object existence

get_s3_file

def get_s3_file(
    request: starlette.requests.Request,
    file_path: str = Path(PydanticUndefined),
    expiry: int = Query(3600),
    read_meta: bool = Query(True)
)

head_s3_file

def head_s3_file(
    request: starlette.requests.Request,
    file_path: str = Path(PydanticUndefined)
)

list_s3_files

def list_s3_files(
    request: starlette.requests.Request,
    folder: str = Query(/HDX),
    prettify: bool = Query(False)
)

read_meta_json

def read_meta_json(
    bucket_name,
    file_path
)
Async function to read from meta json