且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将文件从Cloud Storage加载到内存中

更新时间:2023-12-02 20:16:40

我相信您正在寻找的是 Google云功能.您可以将Cloud Function设置为通过上传到GCS存储桶触发 ,并使用您的同一Cloud Function中的Python代码来处理.csv并将其上传到BigQuery,但是,请记住,Python 3.7.1对Cloud Functions的支持目前处于Beta开发状态.

I believe what you’re looking for is Google Cloud Functions. You can set a Cloud Function to be triggered by an upload to the GCS bucket, and use your Python code in the same Cloud Function to process the .csv and upload it to BigQuery, however, please bear in mind that Python 3.7.1 support for Cloud Functions is currently in a Beta state of development.