[英]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.