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.0
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.0.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| safe_s3_storage-0.13.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.1 kB
Release files / safe_s3_storage-0.13.0.tar.gz
| Download URL | safe_s3_storage-0.13.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7fd16bbe813dd9c9abb2afe88c8833d2e601d8043e0842600fb555e517ffba4
|
|
BLAKE2b-256 checksum How to use checksums |
424bdf26d246b4ebcfe37885fb0d36cd4feabb2917b82d52e2d0896c082c1213
|
| 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.0-py3-none-any.whl
| Download URL | safe_s3_storage-0.13.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59216dec10a84d0280c8070685e3937e2c0c96c5968c6ae21556ab2a072dccea
|
|
BLAKE2b-256 checksum How to use checksums |
b535ec55692c2e84368ba3af4cad1727eabd595e4c7d418d734bf99174fdbc57
|
| 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}
|