An open API service indexing awesome lists of open source software.

https://github.com/alexdemure/gads3

An async and lightweight S3 client for uploading, downloading, and deleting files.
https://github.com/alexdemure/gads3

s3 s3client

Last synced: 5 days ago
JSON representation

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

Awesome Lists containing this project

README

        



logo


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

---

### Installation

```
pip install gads3
```

### Usage

```sh
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")
```