Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0581c28 commit 16fd323Copy full SHA for 16fd323
datastore/google/cloud/datastore/__init__.py
@@ -16,21 +16,14 @@
16
17
You'll typically use these to get started with the API:
18
19
-.. testsetup:: constructors
20
-
21
- import os
22
- os.environ['GOOGLE_CLOUD_PROJECT'] = u'my-project'
23
24
.. doctest:: constructors
25
26
>>> from google.cloud import datastore
27
>>>
28
>>> client = datastore.Client()
29
- >>> print(client.project)
30
- my-project
31
>>> key = client.key('EntityKind', 1234)
32
>>> key
33
- <Key('EntityKind', 1234), project=my-project>
+ <Key('EntityKind', 1234), project=...>
34
>>> entity = datastore.Entity(key)
35
>>> entity['answer'] = 42
36
>>> entity
0 commit comments