Search code examples
python-3.xgoogle-app-enginegoogle-cloud-platformapp-engine-ndb

how can we run google app engine with python3 with ndb on local


I am using python google app engine

could you tell me, how i can run python3 google app engine with ndb on local system?

Help me

https://cloud.google.com/appengine/docs/standard/python3


Solution

  • App Engine is a Serverless service provided by Google Cloud Platform where you can deploy your applications and configure Cloud resources like instances' CPU, memory, scaling method, etc. This will provide you the architecture to run your app.

    This service is not meant to be used on local environments. Instead, it is a great option to host an application that (ideally) has been tested on local environments.

    Let's say: You don't run a Django application with Datastore dependencies using App Engine locally, You run a Django application with Datastore (and other) dependencies locally and then deploy it to App Engine once it is ready.

    Most GCP services have their Client libraries so we can interact with them via code, even on local environments. The ndb you asked belongs to the Google Cloud Datastore and can be installed in Python environments with:

    pip install google-cloud-ndb
    

    After installing it, you will be ready to interact with Datastore locally. Please find details about setting up credentials and code snippets in the Datastore Python Client Library reference.

    Hope this is helpful! :)