简体   繁体   English

如何使用 Google App Engine Python 3 Blobstore?

[英]How do I use Google App Engine Python 3 Blobstore?

I am working on a Google App Engine project in Python 3 that needs to allow users to upload files larger than the 32gb limit.我正在开发 Python 3 中的 Google App Engine 项目,该项目需要允许用户上传大于 32gb 限制的文件。 Ideally, I would like these files to end up in my bucket as well.理想情况下,我希望这些文件也最终出现在我的存储桶中。 I have found a guide for Python 2, but it (A) does not tell you how to import blobstore to the project and (B) seems to indicate that this method is intended for python 2. https://cloud.google.com/appengine/docs/standard/python/blobstore/我找到了 Python 2 的指南,但它 (A) 没有告诉您如何将 blobstore 导入项目,并且 (B) 似乎表明此方法适用于 python 2. Z5E056C500A1C4B6A7ADEZ110B。 /appengine/docs/standard/python/blobstore/

I would appreciate any help!我将不胜感激任何帮助!

In the Python 3.7 runtime, Blobstore is deprecated in favor of using Google Cloud Storage.在 Python 3.7 运行时中, 不推荐使用Blobstore 以支持使用 Google Cloud Storage。

The Python 3.7 runtime in the App Engine standard environment does not use the App Engine SDK to provide access to service functionality, unlike the Python 2.7 runtime, which does. App Engine 标准环境中的 Python 3.7 运行时不使用 App Engine SDK 来提供对服务功能的访问,这与 Python 运行时不同。 Instead when using the Python 3.7 runtime, you should use the Google Cloud managed services and/or third party services that meet your needs.相反,在使用 Python 3.7 运行时时,您应该使用满足您需求的 Google Cloud 托管服务和/或第三方服务。

Blobstore Blobstore
To store and retrieve data, use Cloud Storage through the Google Cloud client libraries.要存储和检索数据,请通过 Google Cloud 客户端库使用 Cloud Storage。 To get started, see Using Cloud Storage.要开始使用,请参阅使用云存储。

This is the main tutorial on how to use Google Cloud Storage. 是有关如何使用 Google Cloud Storage 的主要教程。


Uploading objects into Cloud Storage using Python 使用 Python 将对象上传到 Cloud Storage
Uploading Objects Guide上传对象指南
Objects Insert Docs对象插入文档

This method accepts uploaded object data with the following characteristics:该方法接受上传的 object 数据,具有以下特点:

Maximum file size: 5 TB最大文件大小:5 TB

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM