AWSPlay (Python CSV Parsing)
#csvCreds.py import csv def getSecret(file=”C:\Users\cstgeorge\Downloads\credentials.csv”): with open(file, “rb”) as ofile: reader = csv.DictReader(ofile, delimiter=’,’) for row in reader: return row[‘Secret Access Key’] def getID(file=”C:\Users\cstgeorge\Downloads\credentials.csv”): with open(file, “rb”) as ofile: reader = csv.DictReader(ofile, delimiter=’,’) for row in reader: return row[‘Access Key Id’] #awsPlay.py import csvCreds import boto from boto.s3.key import Key if __name__ == “__main__”: conn[…]