4

There is a lot of info on using NDB API with Google App Engine Datastore but I can't find any info on how to use NDB with Google Cloud Datastore. The only module I found is googledatastore which is very primitive library.

How is App Engine Datastore different from the Cloud Datastore? Is NDB available for the Cloud Datastore?

bossylobster
  • 9,993
  • 1
  • 42
  • 61
TWL
  • 75
  • 6
  • 3
    Per https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues/2 , the issue of using `ndb` to access the Google Cloud Datastore is an open one from Google's viepoint -- meanwhile many others are working on higher-abstraction-layer libraries on top of the low-level `googledatastore`, and you'll find plenty of links and discussions at that URL. – Alex Martelli Jan 07 '15 at 01:00

2 Answers2

5

NDB support outside of App Engine (using Google Cloud Datastore) is currently in development.

UPDATE: Check out the NDB development discussion on GitHub.

bossylobster
  • 9,993
  • 1
  • 42
  • 61
Alfred Fuller
  • 773
  • 3
  • 5
2

You might want to try using gcloud.datastore (pip install gcloud).

Docs: http://googlecloudplatform.github.io/gcloud-python/

Code: https://github.com/GoogleCloudPlatform/gcloud-python

JJ Geewax
  • 10,342
  • 1
  • 37
  • 49