I could have sworn I used this before and it was working fine. Not sure if my environment changed or I am forgetting something else.
import boto
b = "some_bucket"
key = "some_s3_key"
k = boto.s3.key.Key(b, key)
but now I am getting an error
AttributeError: 'module' object has no attribute 'key'
Am I doing something wrong? This is for
boto 2.49.0
botocore 1.16.7
with python 2
I was going to use k.get_file()
and k.set_contents_from_file()