I would like to know if a key exists in boto3. I can loop the bucket contents and check the key if it matches.
But that seems longer and an overkill. Boto3 official
You can use S3Fs, which is essentially a wrapper around boto3 that exposes typical file-system style operations:
import s3fs s3 = s3fs.S3FileSystem() s3.exists('myfile.txt')