# read data from s3 bucket python s3 = boto3.resource('s3') bucket = s3.Bucket('test-bucket') for object in bucket.objects.all(): key = object.key body = object.get()['Body'].read()