Skip to content

AlexDemure/gads3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

An async and lightweight S3 client for uploading, downloading, and deleting files


Installation

pip install gads3

Usage

from gads3 import S3, Mimetype

s3 = S3(
    bucket="media",
    endpoint_url="http://localhost:9000",
    aws_access_key_id="S3_ACCESS_KEY",
    aws_secret_access_key="S3_SECRET_KEY",
)

await s3.upload(file=bytes, filename="filename", mimetype=Mimetype.jpeg storage="files")
await s3.delete(filename="filename", mimetype=Mimetype.jpeg storage="files")

About

An async and lightweight S3 client for uploading, downloading, and deleting files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages