Storage

S3

Methods to simplify storing and retrieving objects from S3

class AwAws.Storage.s3.S3(client=None, region_name=None)
get_streaming_file_object()

for reading objects from s3 retutns a binary object which can be decoded with decode(‘utf-8’) for example

put_data_object(data)

store a data structure - like an array or dict

put_file_object(data)

store binary info - an image, encrypted data, word doc, etc

set_bucket_name(bucket_name)

sets the bucket_name property for class. CHecks that bucket exists

set_key_name(key_name)

set the key name property (i.e., the s3 ‘file’ name)