Questions tagged [gcloud-python]

Google Cloud Client Library for Python - an idiomatic, intuitive, and natural way for Python developers to integrate with Google Cloud Platform services, like Cloud Datastore and Cloud Storage.

gcloud is a client library for accessing Google Cloud Platform services that significantly reduces the boilerplate code you have to write. The library provides high-level API abstractions so they're easier to understand. It embraces idioms of Python, works well with the standard library, and integrates better with your codebase. All this means you spend more time creating code that matters to you.

gcloud is configured to access Google Cloud Platform services and authorize (OAuth 2.0) automatically on your behalf. With a one-line install and a private key, you are up and ready to go. Better yet, if you are running on a Google Compute Engine instance, the one-line install is enough!

More information

60 questions
0
votes
0 answers

How to make google blob public in DRF to_internal_value function?

I have the following code which serves up a public google cloud storage url for images I am uploading: def to_internal_value(self, data): file_name = str(uuid.uuid4()) # Get the file name extension: file_extension =…
Evan Zamir
  • 8,059
  • 14
  • 56
  • 83
0
votes
0 answers

Google Speech API faster with higher sample rate

I'm using the Google Cloud Speech API Python Library to extract text from a video file. In a prior step the video file is converted to a flac audiofile. sample_rate = 48000 client = speech.Client() cmd = "ffmpeg -i {} -vn -ac 1 -ar {}…
0
votes
2 answers

Authentication to Google Cloud Python API Library stopped working

I have problems with the authentication in the Python Library of Google Cloud API. At first it worked for some days without problem, but suddenly the API calls are not showing up in the API Overview of the Google CloudPlatform. I created a service…
0
votes
1 answer

trouble with importing gcloud libs in python script

I have updated gcloud components. I have installed BigQuery lib using pip install following the instructions in the online doc. I am running Python 2.7.10. when I run a python script that has the following line: from google.cloud import…
FZF
  • 855
  • 4
  • 12
  • 29
0
votes
1 answer

Google Cloud SSLHandshakeError

We are trying to download reviews ratings and stats data of mobile apps from google cloud. In the server machine a ubuntu box, I installed gcloud. I did authentication in the box with using gcloud auth command. I am using following code to get the…
Dutta
  • 663
  • 2
  • 11
  • 30
0
votes
2 answers

google-app-engine fails to run Cron job and gives an ImportError: No module named gcloud

app-engine fails to import gcloud used gcloud app deploy app.yaml \cron.yaml to deploy on google app engine opened on browser and get: Traceback (most recent call last): File…
0
votes
1 answer

What is "well known" file associated with ``gcloud`` command line tool

In some gcloud code I'm finding a comment: Stored "well known" file associated with gcloud command line tool What is this "well known" file?
0
votes
1 answer

run_async_query in Python gcloud BigQuery using Standard SQL instead of Legacy SQL

I need to run an async query using the gcloud python BigQuery library. Furthermore I need to run the query using the beta standard sql instead of the default legacy sql.According to the documentation here, here, and here I believe I should be able…
KevinTydlacka
  • 1,263
  • 1
  • 15
  • 30
0
votes
1 answer

Hashed or random values getting inserted in google cloud datastore

task = datastore.Entity(client.key('ModelDataTest', prod_id)) task.update({ 'ProductId': '1234', 'ListOfRankedRelevantItems.ProductId': ['345', '456','567'], 'ListOfRankedRelevantItems.SimilarityScore':…
0
votes
0 answers

HTTP 401 auth error while logged in with gcloud auth

try to get a blob from google cloud storage like this: from gcloud import storage gcs_client = storage.Client() gcs_bucket = gcs_client.get_bucket('mybucketname') gcs_blob = gcs_bucket.blob(path) gcs_blob.download_to_file(somefileobject) Pretty…
0
votes
1 answer

How to add C libraries to Python appengine

I have a Python GAE application which also uses Google Compute Engine VM instances. I'm trying to run some 3rd party applications from the shell. When I launch the Google Cloud Shell program and type pwd, the path shows: /home/ but when…
0
votes
2 answers

412 no matching index found while executing a query in cloud datastore

I am using gcloud-python library for querying data from the cloud datastore. Consider my snippet to be like this from google.appengine.ext import ndb from datetime import datetime class Order(ndb.Model): order_name =…
0
votes
1 answer

Stuck with old version of oauth2client when using Vagrant

I've got a script that uses gcloud v0.7.1. As soon as I run it, I get the following error: ... File "/home/vagrant/venvs/lib/python2.7/site-packages/gcloud/credentials.py", line 26, in from oauth2client.client import…
Steven Mercatante
  • 24,757
  • 9
  • 65
  • 109
0
votes
1 answer

Fetching 100 Results at a Time in Google App Engine

I was hoping someone could explain to me how to use offsets or cursors in App Engine. I'm using gcloud to remote access entities for a huge data migration, and would like to grab data in batches of 100. I'm guessing there is a very simple way to do…
Mmm Donuts
  • 9,551
  • 6
  • 27
  • 49
0
votes
1 answer

Try to init a Repo using the G cloud, for an existing project

There is an existing project I am a developer on with ID: placingliterature I am attempting to run the command gcloud init placingliterature I ran g auth and logged in properly. I tried with or without the gitRepo already existing I get this…
1 2 3
4