multipart
s3_asyncio_client.multipart
¶
Asyncio-based multipart upload functionality for S3.
Based on s3transfer library architecture but implemented with asyncio. Uses functions and coroutines instead of complex class hierarchies and threads.
adjust_chunk_size(current_chunksize, file_size=None)
¶
Adjust chunk size to comply with S3 limits. Based on s3transfer's ChunksizeAdjuster logic.
Source code in src/s3_asyncio_client/multipart.py
read_file_chunks(file_path, part_size)
async
¶
Async generator that yields file chunks for multipart upload.
Source code in src/s3_asyncio_client/multipart.py
read_fileobj_chunks(fileobj, part_size)
async
¶
Async generator that yields chunks from a file-like object.