How To Use Asyncio To Download Files On S3 Bucket
I'm using the following code to download all my files in a s3 bucket: def main(bucket_name, destination_dir): bucket = boto3.resource('s3').Bucket(bucket_name) for obj in b
Solution 1:
Aiobotocore provides asyncio support for botocore library using aiohttp. If you are willing to modify your code to use botocore instead, that would be a solution.
Solution 2:
Out of the box, boto3 doesn't support asyncio. There's a tracking issue opened on this that offers some workarounds; they may or may not work for your use case.
Post a Comment for "How To Use Asyncio To Download Files On S3 Bucket"