File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed 
packages/aws-library/src/aws_library/s3 Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 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 
117from  ._errors  import  (
128    S3AccessError ,
139    S3BucketInvalidError ,
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" ,
Original file line number Diff line number Diff line change 33from  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- )
96MULTIPART_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
1313PRESIGNED_LINK_MAX_SIZE : Final [ByteSize ] =  TypeAdapter (ByteSize ).validate_python ("5GiB" )
1414S3_MAX_FILE_SIZE : Final [ByteSize ] =  TypeAdapter (ByteSize ).validate_python ("5TiB" )
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments