我找不到有关如何使用 Python 在 Google App Engine 上实现 Google Cloud Storage Signed Urls 的简单示例。请写一个分步指南。 :)
最佳答案
我创建了这个存储库:https://github.com/voscausa/appengine-gcs-signed-url
使用 GAE Pyrthon app_identity.get_service_account_name()
和 app_identity.sign_blob()
可以非常轻松地创建签名 url,而无需使用 PEM key 。该应用展示了如何下载 GCS 文件。
但是如果你使用SDK来测试应用,你必须使用:
- --appidentity_email_address
- --appidentity_private_key_path
因为创建签名 url 不是 GCS 客户端的一部分。
关于python - 如何在 App Engine Python 上创建谷歌云存储签名 URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30843450/