s3-concat is a Python library for concatenating files stored in AWS S3 without downloading them locally. It uses the S3 multipart upload API to efficiently combine objects. Current version is 0.3.0, requires Python >=3.8, and is released on PyPI. The library is in active development but has infrequent releases.
pip install s3-concatNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Concatenates multiple S3 objects into one using multipart upload.
Ensure all source files are in the same bucket, or copy them to the same bucket first.
Use a boto3.Session object and pass it to S3Concat with explicit_creds=False (or rely on default credentials).
Sort source_keys list before calling s3.concat().
Ensure total size of concatenated file is at least 5MB, or be aware that very small concatenations may fail with 'EntityTooSmall' error.
Use import s3_concat (underscores) instead of s3-concat.
Ensure source files are not modified during the concatenation process. Also check that the bucket/keys exist and are accessible.
Verify that all source keys are correct and exist in the source bucket.