from google.cloud import datastore # For hjælp til godkendelse af din klient, besøg # https://cloud.google.com/docs/authentication/getting-started client = datastore.Client() key = client.key("Task", "sampleTask") task = datastore.Entity(key) task.update({ "description": "Learn Cloud Datastore", "done": False, "priority": 4, "disco_ball": b'\xe2\x9c\x85' # unicode streng }) client.put(task)