Skip to main content

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

Release files for ndbunq 0.1.0

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

Source distribution (sdist)

Source distribution for ndbunq 0.1.0
File Size Uploaded
ndbunq-0.1.0.tar.gz 2.5 kB Details

Release files / ndbunq-0.1.0.tar.gz

Download URL ndbunq-0.1.0.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
77d9f1adff1bab96aafb5d1b39fa9d7c09698eec8a81d54aa4c796f3d3501ee3
BLAKE2b-256 checksum
How to use checksums
cd0abfe699d036af45a110bac27701abf1161c38299f1d8a01178d9ee2c2a7ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

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