Skip to content

Commit 151e250

Browse files
committed
Launch to beta
1 parent f320b9f commit 151e250

File tree

3 files changed

+21
-19
lines changed

3 files changed

+21
-19
lines changed

packages/google-cloud-ndb/MIGRATION_NOTES.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,17 @@ The primary differences come from:
1616
## Bootstrapping
1717

1818
The biggest difference is in establishing a runtime context for your NDB
19-
application. In the Google App Engine environment, Legacy NDB could just
20-
shoehorn the runtime context onto the current HTTP request. Decoupling NDB from
21-
GAE, means we can't assume we're running in the context of a GAE request.
22-
23-
To deal with this, the ``Client`` class has been introduced which by and large
24-
works the same as Datastore's ``Client`` class and uses ``google.auth`` for
25-
authentication. While this is different from how Legacy NDB worked, this is
26-
consistent with how APIs in Google Cloud Platform work. You can pass a
27-
``credentials`` parameter to ``Client`` or use the
28-
``GOOGLE_APPLICATION_CREDENTIALS`` environment variable (recommended).
19+
application. The Google App Engine Python 2.7 runtime had a strong assumption
20+
that all code executed inside a web framework request-response cycle, in a
21+
single thread per request. In order to decouple from that assumption, Cloud NDB
22+
implements explicit clients and contexts. This is consistent with other Cloud
23+
client libraries.
24+
25+
The ``Client`` class has been introduced which by and large works the same as
26+
Datastore's ``Client`` class and uses ``google.auth`` for authentication. You
27+
can pass a ``credentials`` parameter to ``Client`` or use the
28+
``GOOGLE_APPLICATION_CREDENTIALS`` environment variable (recommended). See
29+
[https://cloud.google.com/docs/authentication/getting-started] for details.
2930

3031
Once a client has been obtained, you still need to establish a runtime context,
3132
which you can do using the ``Client.context`` method.
@@ -217,12 +218,11 @@ that are affected are: `memcache_add`, `memcache_cas`, `memcache_decr`,
217218

218219
## Privatization
219220

220-
One thing legacy NDB didn't do very well, was distinguishing between internal
221-
private and external public API. A few bits of the nominally public API
222-
have been found to be *de facto* private. These are pieces that are omitted
223-
from public facing documentation and which have no apparent use outside of NDB
224-
internals. These pieces have been formally renamed and moved to be internally
225-
facing, private API:
221+
App Engine NDB exposed some internal utilities as part of the public API. A few
222+
bits of the nominally public API have been found to be *de facto* private.
223+
These are pieces that are omitted from public facing documentation and which
224+
have no apparent use outside of NDB internals. These pieces have been formally
225+
renamed as part of the private API:
226226

227227
- `eventloop` has been renamed to `_eventloop`.
228228
- `tasklets.get_return_value` has been renamed to `tasklets._get_return_value`

packages/google-cloud-ndb/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ run on other Python 3 platforms as well.
1919

2020
## Release Status
2121

22-
Alpha
22+
Beta
2323

2424
### Supported Python Versions
2525
Python >= 3.6
26+
27+
Python 2 backwards-compatibility is currently in development.

packages/google-cloud-ndb/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def main():
3030

3131
setuptools.setup(
3232
name="google-cloud-ndb",
33-
version="0.0.1",
33+
version="0.1.0",
3434
description="NDB library for Google Cloud Datastore",
3535
long_description=readme,
3636
long_description_content_type="text/markdown",
@@ -43,7 +43,7 @@ def main():
4343
'Issue Tracker': 'https://github.com/googleapis/python-ndb/issues'
4444
},
4545
classifiers=[
46-
"Development Status :: 3 - Alpha",
46+
"Development Status :: 4 - Beta",
4747
"Intended Audience :: Developers",
4848
"License :: OSI Approved :: Apache Software License",
4949
"Programming Language :: Python",

0 commit comments

Comments
 (0)