Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Poor man unique constraints for Google Appengine NDB

Project description

Unique constraints for Google Appengine NDB

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

Example

There is full working example for Flask: https://github.com/vmihailenco/ndbunq-example/:

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',),)

Project details


Release history Release notifications

This version
History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
ndbunq-0.1.0.tar.gz (2.5 kB) Copy SHA256 hash SHA256 Source None Apr 6, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page