from google.cloud import datastore
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 string
})
client.put(task)
```