Skip to content

Commit a7e0867

Browse files
author
Andrei Neagu
committed
fixed more broken imports
1 parent 706ee4b commit a7e0867

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

packages/aws-library/src/aws_library/s3/__init__.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
SimcoreS3API,
44
UploadedBytesTransferredCallback,
55
)
6-
from ._constants import (
7-
MIN_MULTIPART_UPLOAD_CHUNK_SIZE,
8-
PRESIGNED_LINK_MAX_SIZE,
9-
S3_MAX_FILE_SIZE,
10-
)
6+
from ._constants import PRESIGNED_LINK_MAX_SIZE, S3_MAX_FILE_SIZE
117
from ._errors import (
128
S3AccessError,
139
S3BucketInvalidError,
@@ -27,7 +23,6 @@
2723

2824
__all__: tuple[str, ...] = (
2925
"CopiedBytesTransferredCallback",
30-
"MIN_MULTIPART_UPLOAD_CHUNK_SIZE",
3126
"MultiPartUploadLinks",
3227
"PRESIGNED_LINK_MAX_SIZE",
3328
"S3_MAX_FILE_SIZE",

packages/aws-library/src/aws_library/s3/_constants.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
from pydantic import ByteSize, TypeAdapter
44

55
# NOTE: AWS S3 upload limits https://docs.aws.amazon.com/AmazonS3/latest/userguide/qfacts.html
6-
MIN_MULTIPART_UPLOAD_CHUNK_SIZE: Final[int] = TypeAdapter(ByteSize).validate_python(
7-
"5MiB"
8-
)
96
MULTIPART_UPLOADS_MIN_TOTAL_SIZE: Final[ByteSize] = TypeAdapter(
107
ByteSize
118
).validate_python("100MiB")
9+
MULTIPART_COPY_THRESHOLD: Final[ByteSize] = TypeAdapter(ByteSize).validate_python(
10+
"100MiB"
11+
)
1212

1313
PRESIGNED_LINK_MAX_SIZE: Final[ByteSize] = TypeAdapter(ByteSize).validate_python("5GiB")
1414
S3_MAX_FILE_SIZE: Final[ByteSize] = TypeAdapter(ByteSize).validate_python("5TiB")

0 commit comments

Comments
 (0)