This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os.path import basename | |
class EditImgUploadS3: | |
def __init__(self): | |
self.s3 = boto3.resource('s3') | |
self.region = os.getenv('AWS_STORAGE_REGION') | |
self.bucket = os.getenv('AWS_STORAGE_BUCKET_NAME') | |
def upload_object(self, image): | |
new_image = self.draw_rectangle(image) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |