Beispiel #1
0
def get_datastore(project):
    """Returns a Cloud Datastore client."""
    credentials = auth.get_service_credentials()
    return Datastore(project,
                     credentials,
                     host='batch-datastore.googleapis.com')
Beispiel #2
0
def get_datastore(project):
    """Returns a Cloud Datastore client."""
    credentials = auth.get_service_credentials()
    return Datastore(project, credentials)