google-cloud-python Questions
4
So I'm trying to produce temporary globally readable URLs for my Google Cloud Storage objects using the google-cloud-storage Python library (https://googlecloudplatform.github.io/google-cloud-pytho...
Fletcherfletcherism asked 3/10, 2017 at 9:2
2
We are running the following code to upload to GCP Buckets in parallel. It seems we are quickly using up all the connections in the pool based on the warnings we are seeing. Is there any way to con...
Renie asked 4/10, 2018 at 18:57
3
Solved
I have deployed a Python 3.7 function in Google Cloud. I need to get the project-id through code to find out where it is deployed.
I write a small Python 3.7 script and test it through Google shell...
Sepulchral asked 1/12, 2020 at 9:42
3
Solved
I am attemptting to get a CRC32c checksum on my local file so I can compare it to the blob.crc32c provided by the gcloud library. Google says I should be using the crcmod module in order to actuall...
Evert asked 21/5, 2016 at 20:38
3
Solved
I am trying to upload a file to Google Cloud Storage using gcloud-python and set some custom metadata properties. To try this I have created a simple script.
import os
from gcloud import storage
...
Fluctuant asked 15/10, 2015 at 9:40
3
Solved
I'm trying to upload a pandas.DataFrame to Google Big Query using the pandas.DataFrame.to_gbq() function documented here. The problem is that to_gbq() takes 2.3 minutes while uploading directly to ...
Votary asked 20/2, 2018 at 13:47
3
Solved
I am trying to delete a folder in GCS and its all content (including sub-directories) with its Python library. Also I understand GCS doesn't really have folders (but prefix?) but I am wondering how...
Cathiecathleen asked 13/10, 2018 at 5:5
5
Solved
I'm going to write a Python program to check if a file is in certain folder of my Google Cloud Storage, the basic idea is to get the list of all objects in a folder, a file name list, then check if...
Libretto asked 14/3, 2014 at 7:39
2
As in the title, when running the appserver I get a DistributionNotFound exception for google-cloud-storage:
File "/home/[me]/Desktop/apollo/lib/pkg_resources/init.py", line 867, in resolve
rai...
Pittman asked 3/11, 2017 at 21:56
2
Solved
I'm using Google's Stackdriver Logging Client Libraries for Python to programmatically retrieve log entries, similar to using gcloud beta logging read.
Stackdriver also does provide an API to retr...
Abcoulomb asked 18/8, 2017 at 16:11
3
If I already have the schema file, for example: schema.json. How can I load the file to create the table or job schema using the google-cloud-python API?
Graehl asked 28/11, 2016 at 20:0
1
I have the following code:
bucket = get_bucket('bucket-name')
blob = bucket.blob(os.path.join(*pieces))
blob.upload_from_string('test')
blob.make_public()
result = blob.public_url
# result is `<...
Fermin asked 17/8, 2018 at 16:31
2
Solved
I have a pretty straightforward app that starts a PubSub subscriber StreamingPull client. I have this deployed on Kubernetes so I can scale. When I have a single pod deployed, everything works as e...
Highchair asked 18/9, 2019 at 1:17
5
I am using Python3 to query Stackdriver for GCP logs. Unfortunately, the log entries that have important data are returned to me as "NoneType" instead of as a "dict" or a "str". The resulting "entr...
Grapefruit asked 11/5, 2018 at 23:54
2
I've got a Google Cloud PubSub topic which at times has thousands of messages and at times zero messages coming in. These messages represent tasks which can take upwards of an hour each. Preferably...
Hushhush asked 5/8, 2019 at 19:35
2
Solved
I could get the size from gsutil.
✗ gsutil du gs://<bucket>/test/1561402306
100 gs://<bucket>/test/1561402306
I could confirm the length and content via download_as_string. However, ...
Tinny asked 25/6, 2019 at 5:10
1
Solved
I am trying to get a service account to create blobs in Google Cloud Storage
from within a Python script, but I am having issues with the credentials.
1) I create the service account for my projec...
Turner asked 4/3, 2019 at 12:32
2
I would like to be able to programmatically generate an id token for iap using the user default credential on a dev environment (i.e. my own laptop with google cloud sdk installed and logged in).
...
Memorial asked 2/3, 2018 at 14:48
1
Solved
I see both used in different documentation from Google:
from google.cloud import pubsub
Is found in:
https://github.com/GoogleCloudPlatform/google-cloud-python/tree/master/pubsub
https://googl...
Colewort asked 10/1, 2018 at 22:51
5
It's frustrating to deal with the regular Signed URLs (Query String Authentication) for Google Cloud Storage.
Google Cloud Storage Signed URLs Example -> Is this really the only code available in ...
Bates asked 20/2, 2014 at 19:49
1
I have a table in Google Cloud Datastore where I store a small data structure which is written in one Python service and read in another. I am using gcloud version 0.15.0. Here is the Python code t...
Certiorari asked 13/7, 2016 at 21:32
1
Solved
In the gcloud documentation for google bigquery, it states that authentication can be determined from from_service_account_json.
I've tried the following
from gcloud import bigquery
client = big...
Jarnagin asked 20/2, 2016 at 21:34
1
© 2022 - 2024 — McMap. All rights reserved.