This file contains hidden or 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
import boto3, configparser, os, botocore | |
def download_file(key): | |
""" | |
Downloads given filename from source bucket to destination directory. | |
Parameters | |
---------- | |
key : str | |
Name of file to download |
This file contains hidden or 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
import boto3, configparser | |
s3resource = None | |
def setup(): | |
"""Creates S3 resource & sets configs to enable download.""" | |
print('Connecting to Amazon S3...') | |
# Securely import configs from private config file |
NewerOlder