An async and lightweight S3 client for uploading, downloading, and deleting files
Project description
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")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gads3-0.0.1.tar.gz
(4.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
gads3-0.0.1-py3-none-any.whl
(4.1 kB
view details)
File details
Details for the file gads3-0.0.1.tar.gz.
File metadata
- Download URL: gads3-0.0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a50c64810a73b6dcf2eb46776eff187d4efb5a52113158d5a8d2c50900c8659
|
|
| MD5 |
cdbcf1c0beeea5cc0aae2b35c939751c
|
|
| BLAKE2b-256 |
78736d9cd41a2c5c5f14cab04d1ca4f59de6a4f63340dfee93c2e6945614697b
|
File details
Details for the file gads3-0.0.1-py3-none-any.whl.
File metadata
- Download URL: gads3-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be1e8cab1364e0a0764b1c2724c1ac140325e0831e4c159b9f142a797a77d19c
|
|
| MD5 |
9ce44a9491143a14c2c25af4c9f77977
|
|
| BLAKE2b-256 |
d1975fcf128ff51168123580231ab0866db59d8050f6a0742f04e1c60075068c
|