Skip to main content

simpleNDB

Travis CI Python versions License: MIT Known Vulnerabilities

Purpose

Provides a set of wrappers for the Google Cloud Python clients to be used on Python 3 App Engine Standard Edition instances to provide some of the abilities previously provided by the appengine api and ext libraries.

Installation

$ pip install simpleNDB

The full package can be imported as follows:

from simplendb import ndb, images, users

To use the individual components, see :

Background and Concepts

I needed to migrate some simple applications running on the Google Appengine Standard Edition Python 2 version to the Python 3 version.

This is a major change to the runtime environment - involving a complete change to the webserver and python run time environments. It also sunsets a number of very usefull APIs that made it very quick and easy to run up a simple web app or web site for groups, for demonstrations and for prototypes : including :

  • NDB - A simple NoSQL Network Database built on Cloud Datastore. Quick and easy to set up a schema.
  • Users - A simple, no setup way to authenticate users against their Google id and get the details. Allows you to create authenticated apps without effort.
  • Blobstore - a handy and simple way of storeing blobs and images.
  • Images - an inbuilt image handler optimised for the environment. Included the native __get_serving_url function that it loosk like will not be resurected :angry:

There are, of course, ways to do the same thinsg in the new environment, since all that has gone away is effectively middle ware. Google recommend the following:

This is all actually very good, but as one commentor said :

this requires the developer to create a lot of boilerplate that the appengine API used to do for us

This library is an attempt to do the boilerplate and make these libraries more of a drop-in replacement for the old libraries. I am not attempting to do a full drop-in replacement - there are attempts to do this for NDB for instance see but that looks like it will take 10 months and I needed somthing in 2 days. That something is this library. Quick and not very clean but good for the sort of simple apps that AppEngine SE should be good for.

It basically allows developers to migrate basic current apps to use the Google Cloud Clients without completely restructuring the app. There will be some format and type changes and if you want advanced capabilities (like transactions and async operations) you should probable wait for the library linked above or do a proper migration of your app.

Release files for simpleNDB 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simpleNDB 1.0.6
File Size Uploaded
simpleNDB-1.0.6.tar.gz 8.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for simpleNDB 1.0.6
File Interpreter ABI Platform
simpleNDB-1.0.6-py3-none-any.whl Python 3 none any Details

Total release size:19.9 kB

Release files / simpleNDB-1.0.6.tar.gz

Download URL simpleNDB-1.0.6.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
599dbe09ab313c666e1698c665d26dc13d9378f2f02fd94b334dd457c5d52902
BLAKE2b-256 checksum
How to use checksums
6cdeed789a6bcfee78ef799c6ebc23ef9635d6bdcba9bf5a7547ff2c76da5477
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.3

Release files / simpleNDB-1.0.6-py3-none-any.whl

Download URL simpleNDB-1.0.6-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
95aee589145e691da23deb162a2c946eb8b9a36382487332159e3d05964c00a0
BLAKE2b-256 checksum
How to use checksums
0d7c36aca855d617da9559a770fb38ae95151d2a6894534df24144c723e8607d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.9.6

2 release files

0.9.5

2 release files

0.9.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page