google-cloud-python

Google Cloud Storage Python list_blob() not printing object list

不想你离开。 提交于 2019-12-02 08:53:57
问题 I am Python and Google Cloud Storage newbie. I am writing a python script to get a file list from Google Cloud Storage bucket using Google Cloud Python Client Library and list_blobs() function from Bucket class is not working as I expected. https://googlecloudplatform.github.io/google-cloud-python/stable/storage-buckets.html Here is my python code: from google.cloud import storage from google.cloud.storage import Blob client = storage.Client.from_service_account_json(service_account_json_key

Using Google Cloud Datastore with NDB API?

老子叫甜甜 提交于 2019-12-01 21:14:07
问题 There is a lot of info on using NDB API with Google App Engine Datastore but I can't find any info on how to use NDB with Google Cloud Datastore. The only module I found is googledatastore which is very primitive library. How is App Engine Datastore different from the Cloud Datastore? Is NDB available for the Cloud Datastore? 回答1: NDB support outside of App Engine (using Google Cloud Datastore) is currently in development. UPDATE: Check out the NDB development discussion on GitHub. 回答2: You

Using Google Cloud Datastore with NDB API?

跟風遠走 提交于 2019-12-01 19:15:51
There is a lot of info on using NDB API with Google App Engine Datastore but I can't find any info on how to use NDB with Google Cloud Datastore. The only module I found is googledatastore which is very primitive library. How is App Engine Datastore different from the Cloud Datastore? Is NDB available for the Cloud Datastore? Alfred Fuller NDB support outside of App Engine (using Google Cloud Datastore) is currently in development. UPDATE: Check out the NDB development discussion on GitHub. You might want to try using gcloud.datastore ( pip install gcloud ). Docs: http://googlecloudplatform

Using gcloud-python in GAE

空扰寡人 提交于 2019-11-28 12:36:04
I've got a bunch of little Raspberry Pis running some python code which saves directly to the Datastore (skips GAE) using the gcloud-python datastore package. This works great. I now want to present the data via web and mobile clients using Google App Engine. On my MacBook I installed GAE using the installer and gcloud via pip. I can write a simple python script and execute it directly from the terminal which is able to write and read from the datastore via gcloud - that also works just fine. However, when I try to incorporate that same code into GAE it fails. Based on my research, I expect

Using gcloud-python in GAE

℡╲_俬逩灬. 提交于 2019-11-27 07:06:50
问题 I've got a bunch of little Raspberry Pis running some python code which saves directly to the Datastore (skips GAE) using the gcloud-python datastore package. This works great. I now want to present the data via web and mobile clients using Google App Engine. On my MacBook I installed GAE using the installer and gcloud via pip. I can write a simple python script and execute it directly from the terminal which is able to write and read from the datastore via gcloud - that also works just fine.