Google Datastore Fetch/Query/Get by Id/Name (Python)

September 8, 2020
from google.cloud import datastore

# client = datastore.Client()
client = datastore.Client.from_service_account_json('PROJECT_ID-datastore.json')

key = client.key('Kind', 'ENTITY_ID_OR_NAME')

item = client.get(key)

References:

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.