[英]Read file from S3 into Python memory
我有一个存储在 S3 中的大型 csv 文件,我想下载、编辑和重新上传这个文件,而不用接触我的硬盘,即将它从 S3 直接读入 memory。 我正在使用 python 库 boto3,这可能吗?
您应该查看io 模块
根据您要读取文件的方式,您可以创建StringIO()或BytesIO() object 并将文件下载到此 stream。
StringIO()
BytesIO()
你应该看看这些答案:
[英]How to read image file from S3 bucket directly into memory?
[英]Read multi object json gz file from S3 in python
[英]Can't read from XML file in S3 with Python
[英]read json file with Python from S3 into sagemaker notebook
[英]How to read file from AWS s3 in python flask on web
[英]Python: How to read and load an excel file from AWS S3?
[英]How to read a file from AWS S3 bucket to Python?
[英]Read csv file from S3 with Python DictReader
[英]Python - How to read CSV file retrieved from S3 bucket?
[英]unable to read large csv file from s3 bucket to python
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.