Например:
Код: Выделить всё
import s3fs
s3 = s3fs.S3FileSystem(anon=True)
with s3.open('my-bucket/my-file.txt', 'rb') as f:
print(f.read())
Подробнее здесь: https://stackoverflow.com/questions/781 ... ilar-to-s3
Код: Выделить всё
import s3fs
s3 = s3fs.S3FileSystem(anon=True)
with s3.open('my-bucket/my-file.txt', 'rb') as f:
print(f.read())