skip to navigation
skip to content

ndbunq 0.1.0

Poor man unique constraints for Google Appengine NDB

Unique constraints for Google Appengine NDB

NDBUnq emulates unique constraints on Google Appengine Datastore using NDB hooks.


There is full working example for Flask:

import ndbunq
from google.appengine.ext import ndb

class User(ndbunq.Model):
    username = ndb.StringProperty(required=True)

    class Meta:
        # username is guaranteed to be unique
        unique = (('username',),)
File Type Py Version Uploaded on Size
ndbunq-0.1.0.tar.gz (md5) Source 2012-04-06 2KB