python和Google云存储

python和Google云存储

本文介绍了python和Google云存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到一个无需在Google Appengine上运行它就如何使用Google云存储的示例.

I can't find an example of how to use the google cloud storage WITHOUT running it on google appengine.

我想要这样的东西(对我有用): https://github.com/GoogleCloudPlatform/storage-getting-started-javascript/但改为在python中实现.

I want something like this (which works good for me): https://github.com/GoogleCloudPlatform/storage-getting-started-javascript/but implemented in python instead.

所以我要归档的是,我的前端询问我的python后端,然后询问云存储.我无法找到没有使用appengine进行身份验证的示例,但这不可能.

So what I want to archive is that my frontend asks my python backend which then asks the cloud storage. I can't seam to find any examples that doesn't use appengine to authenticate, but it cant be impossible.

我已经在 https://github.com/GoogleCloudPlatform/上看了两个例子.但我找不到不依赖于appengine的人.

I've looked at both a couple of examples on https://github.com/GoogleCloudPlatform/ but i can't find one without dependencies on appengine.

它也必须在python3上运行.

It also has to run on python3.

推荐答案

您可以使用 gsutil 从命令行访问Google Cloud Storage.有一个入门指南.

有一个使用gsutil的Python示例此处:

There is a Python example using gsutil here:

这篇关于python和Google云存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 21:19