safe-s3-storage
S3 tools for uploading files to S3 safely (antivirus check, etc.) as well as downloading and deleting files.
How To Use
uv add safe-s3-storage
poetry add safe-s3-storage
Retries on S3 errors
safe-s3-storage doesn't provide any retries on S3 errors. You should configure in S3Client:
import typing
import aioboto3
from aiobotocore.config import AioConfig
from types_aiobotocore_s3 import S3Client
from application.settings import settings
async def create_s3_resource() -> typing.AsyncIterator[S3Client]:
s3_session: typing.Final = aioboto3.Session(
aws_access_key_id=settings.s3_access_key_id,
aws_secret_access_key=settings.s3_secret_access_key.get_secret_value(),
)
async with s3_session.client(
"s3",
endpoint_url=str(settings.s3_endpoint_url),
config=AioConfig(retries={"max_attempts": 3, "mode": "standard"}),
) as s3_client:
yield s3_client
Release files for safe-s3-storage 0.13.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| safe_s3_storage-0.13.1.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| safe_s3_storage-0.13.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.1 kB
Release files / safe_s3_storage-0.13.1.tar.gz
| Download URL | safe_s3_storage-0.13.1.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f5c35592d4f4f0f4b1e653b1a3c3993f09cf8dce67008fa427ec444b3da94f6
|
|
BLAKE2b-256 checksum How to use checksums |
fc217a6a83941d86595244a6a7628a612e3ce0f0ff3ba7c7751a5703bbdd5f4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / safe_s3_storage-0.13.1-py3-none-any.whl
| Download URL | safe_s3_storage-0.13.1-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ddffb232ea22f7f95fce1daa170dee65d050eed3d8b5d2d449cc02695a048596
|
|
BLAKE2b-256 checksum How to use checksums |
a1009108ce57552cf91f353e9bd2b8b09ab727cf98d32bc9d421648db2105068
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|