A very simple package to make Google Cloud Clients look more like appengine.api and NDB
Project description
simpleNDB
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:
- The Google Cloud Python Clients to access the datastore database
- The Firebase Auth API
- Using Pillow for images
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file simpleNDB-1.0.6.tar.gz
.
File metadata
- Download URL: simpleNDB-1.0.6.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 599dbe09ab313c666e1698c665d26dc13d9378f2f02fd94b334dd457c5d52902 |
|
MD5 | f511c4b88f94edf42b8418c3ba346c05 |
|
BLAKE2b-256 | 6cdeed789a6bcfee78ef799c6ebc23ef9635d6bdcba9bf5a7547ff2c76da5477 |
File details
Details for the file simpleNDB-1.0.6-py3-none-any.whl
.
File metadata
- Download URL: simpleNDB-1.0.6-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95aee589145e691da23deb162a2c946eb8b9a36382487332159e3d05964c00a0 |
|
MD5 | a9ae8d604dc01dadd22c81cef027eee1 |
|
BLAKE2b-256 | 0d7c36aca855d617da9559a770fb38ae95151d2a6894534df24144c723e8607d |