Is it possible to get the contents of an S3 file without downloading it using boto3?
If you have a mybucket
S3 bucket, which contains a beer
key, here is how to download and fetch the value without storing it in a local file:
import boto3
s3 = boto3.resource('s3')
print s3.Object('mybucket', 'beer').get()['Body'].read()