Questions tagged [google-app-engine-python]

Python language version of Google App Engine

Python Runtime Environment for Google App Engine

Useful links:

703 questions
-1
votes
1 answer

Estimating cost of Google App Engine API script using “x-appengine-estimated-cpm-us-dollars” header

I created an API using Python + FastAPI and deployed it to Google App Engine and I would like to measure the cost for each request made. I saw there is a header "x-appengine-estimated-cpm-us-dollars" that show up when logged in with the owner…
-1
votes
3 answers

How to write to a file in Google Cloud Storage from Google App Engine (Python 3)

I need to access a json file in GCS (Google Cloud Storage) and change its content from Google App Engine (PY3 standard runtime). Though I can read the content of the file in GCS by: from google.cloud import storage storage_client =…
-1
votes
1 answer

Enable SSL for custom domains in App Engine Standard

I'm using app engine standard with python I added custom domain in app engine api.octabyte.io and a wildcard *.api.octabyte.io I have two services default and quran I'm able to access both services like this. default -> api.octabyte.io quran ->…
-1
votes
3 answers

Load large static assets from Google Cloud Storage bucket into new datastore entity

I've spent a few hours trying to figure out the best practice here and I'm still coming up empty. It's possible I'm just phrasing the question wrong since this must be out there. Nevertheless... I have a bucket in Google Cloud Storage. Large static…
-1
votes
1 answer

Memory leak happened in Python Google App Engine project. Any efficient way to write my operation?

I have a GAE project written in Python. I made a cron to execute a batch operation. But it hit a soft private memory limit of F1 instance, which is 124MB after a few iterations. Could anyone help me to write this code more efficiently, hopefully…
-1
votes
1 answer

Video model and ndb

In appengine I deployed python code with this model for videos to be uploaded. I enabled video uploads It appears instances of model "Video" in the datastore when a video is uploaded. I think the class should be used with ndb library instead of the…
-1
votes
1 answer

Python Session variable

def get_items_from_cart(self): """ Fetches items from sessions cart""" item_list = [] cart_count = self.session.get('add_to_cart_count') if not cart_count: return None; for i in range(1, cart_count+1): item =…
Rizwan Ali
  • 113
  • 2
  • 12
-1
votes
1 answer

How to read, update, delete entities in Google App Engine NOT models (ndb.Model or db.Model)?

I want to read, convert and delete some entities from datastore which does not have ndb.Model or db.Model classes. When I trying it with GQL it leads to: KindError: No implementation for kind 'SomeModel' I do not want to create 'SomeModel' class…
-1
votes
2 answers

How can I query Google App Engine entities by name to convert to new names?

I want to convert some Entities to new names. How can I query entities not having model class defined. For example I have such entity (it simplified to be more readable): class Some(ndb.model): name = ndb.StringProperty() I want to rename it…
Chameleon
  • 9,722
  • 16
  • 65
  • 127
-1
votes
1 answer

Global variable on google app engine to limit an api

Hi I need make a global variable on google app engine (on python). I need a counter to count the request on a freemium api (I have to pay if go over 2000 request at month), but for testing I don't want pay, so if the global variable is equal to the…
-1
votes
1 answer

Operation error 2019 after deploying app

I've managed to deploy my app however, i'm completely stuck after getting this error after opening up the app. I have been investigating and I keep thinking i've installed the wrong version of mysqldb? Traceback (most recent call last): File…
BAW331
  • 53
  • 1
  • 1
  • 9
-2
votes
1 answer

How to prevent Google Cloud Engine to run multiple concurrent instances?

Hi I'm deploying a very simple python code to Google App Engine just to test how Google App Engine works, that I'll later use for my real more complex code that I have tested locally. The problem is that Google App Engine logs is showing that I'm…
-2
votes
2 answers

I need to extract domain from email but i get @domain.com i dont need the @ at the start of the domain

I need to extract domain from email but I got @domain.com. I dont need the @ at the start of the domain class ExtractDomain(webapp2.RequestHandler): def get(self): user = (str(users.get_current_user().email())) domain =…
Phares
  • 1,008
  • 13
  • 20
1 2 3
46
47