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 io import BytesIO | |
from gzip import GzipFile | |
import boto3 | |
# assumes AWS authentication via ~/.aws/credentials, environment variables, or some other mechanism | |
s3_resource = boto3.resource('s3') | |
s3_client = boto3.client('s3') # yes, we really do want both |