I'm developing a storage system, and I'm using NDB Python Datastore.
I need to link it with the Database created in Google App Engine to store all the info I get there.
How can I achieve that?
In addition, I have not already create the database in Google App Engine, is it better to do in a terminal or using the Google Developers Console?
Related
I'm working on a project which is a django backend application , the application at some point relies on the file system to read and write videos and also load tensorflow models.
Is it possible to use google app engine to run my django app or do I need to rent a VM ?
Thanks
Yes, it is possible to run your Django App on App Engine.
You cannot write to App Engine file system but you can read files from your own project.
A possible solution would be to use Cloud Storage to read and write videos and load tesorflow models.
Reading and Writing to Google Cloud Storage
How to restore Tensorflow model from Google bucket without writing to filesystem?
Yes, you can run Django on App Engine, see https://cloud.google.com/python/django/appengine for more details.
There are other options as well for running Django on Google Cloud, see https://cloud.google.com/python/django/ for a complete list.
I'm trying to set up a basic python-based google app engine site that allows users to upload files to google cloud storage (mostly images)
I've been going through the documentation for the JSON API and the GCS client library overview (as well as blobstore etc) and still don't have a good handle on which is the best method and how they are related. Would be great if someone could give an overview of this or point me to some resources I can check out
Also, any sample code that's relevant would be really helpful. I've been able to run the upload samples here but not sure if they're useful for an app engine setup: https://github.com/GoogleCloudPlatform/storage-file-transfer-json-python
Thanks!!
Google Cloud Storage has two APIs -- the XML API and the JSON API. The XML API is XML based and very like the Amazon S3 API. The JSON API is similar to many other Google APIs, and it works with the standard Google API client libraries (for example, the Google API Python library). Both of these APIs can be used from anywhere, with or without App Engine, and are based on RESTful HTTP calls.
App Engine provides a couple of standard ways to access Google Cloud Storage. The first is built into App Engine's API as a feature called the "Google Cloud Storage Python API". This does not directly use either the XML or the JSON API. It's deprecated and no longer recommended.
The second App Engine library is called the "Google Cloud Storage
Python Client Library" and is not part of the core App Engine API. Instead, it's a Python library put out by Google that you can download and add to your application like any other library. This library happens to be implemented using the XML API. It provides a few extra features that are useful for App Engine users, such as the ability to serialize an upload while it's in progress. There's an example of using this library included as part of the download, in the python/demo directory. You can also see it online.
Equivalents of these tools also exist in Java and Go.
There's no need for users to use the App Engine-specific libraries unless they find them to be useful. The standard Python library or even just hand-written HTTP calls using urlfetch will work just as well. The App Engine library merely provides some useful extras for App Engine users.
App Engine also have a "Blobstore Python API". This is a feature specific to App Engine and distinct from Google Cloud Storage, except that it provides a few hooks into Google Cloud Storage, such as the ability to store files in Google Cloud Storage using the Blobstore API.
I'm running Google Cloud Endpoints on Google App Engine (python endpoints and soon go endpoints too)
Does it make sense to use Google Cloud endpoints without app engine e.g. on a personal server or such? Is it possible? What would be involved? (I'm thinking app engine does some magic around endpoints & api explorers etc.. which might need re implementing?)
This may help and it's open source:
http://www.appscale.com/
And I found the site from here: https://cloud.google.com/partners/technology-partners/app-engine/
Using python app engine, I have some data on local datastore. Will the local datastore be uploaded to app engine server after deploy? If not, how can I upload them to the server in the easiest way?
No, it will not be automatically uploaded.
See the Uploading and Downloading Data page on the AppEngine docs for details on how to best upload bulk data to your app.
I'm building an application using Google app engine with python, and I'm stuck with making sessions. Is there any app that already does that for app engine? Thank you.
I recommend gae-sessions. The source includes demos which show how to use it, including how to integrate with the Users API or RPX/JanRain.
Disclaimer: I wrote gae-sessions, but for an informative comparison of it with alternatives, read this article.