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…
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 =…
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 ->…
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…
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…
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…
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 =…
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…
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…
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…
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…
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…
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 =…