It is possible. I have a python function that does something like
localFilename = '/tmp/{}'.format(os.path.basename(key)) s3.download_file(Bucket=bucket, Key=key, Filename=localFilename) inFile = open(localFilename, "r")
Make sure that you use it for temporary storage and do not support any state. Depends on what you are trying to do.
source share