Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Open S3 object as string in Python 3

import boto3

s3 = boto3.resource('s3')

obj = s3.Object(bucket, key)
obj.get()['Body'].read().decode('utf-8')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Open #object #string #Python
ADD COMMENT
Topic
Name
1+7 =