Data Type |
Java type |
Python type |
Unicode text string (up to
500 bytes, indexed)
"Short String" |
java.lang.String |
unicode or str (converted to uni
code as ASCII) |
Long Unicode text string
(not indexed)
"Long String" |
datastore.Text |
db.Text |
Short byte string (up to
500 bytes, indexed) |
datastore.ShortBlob |
db.ByteString |
Long byte string (not indexed) |
datastore.Blob |
db.Blob |
Boolean |
boolean or java.lang.Boolean |
bool |
Integer (64-bit) |
byte, short, int, or long (converted to long) |
int or long (converted to 64-bit long) |
Float (double precision) |
float or double (converted to double) |
float |
Date-time |
java.util.Date |
datetime.datetime |
Null value |
null |
None |
Entity key |
datastore.Key |
db.Key |
A Google account |
...api.users.User |
users.User |
A category (GD) |
datastore.Category |
db.Category |
A URL (GD) |
datastore.Link |
db.Link |
An email address (GD) |
datastore.Email |
db.Email |
A geographical point
(GD) |
datastore.GeoPt |
db.GeoPt |
An instant messaging
handle (GD) |
datastore.IMHandle |
db.IM |
A phone number (GD) |
datastore.PhoneNumber |
db.PhoneNumber |
A postal address (GD) |
datastore.PostalAddress |
db.PostalAddress |
A user rating (GD) |
datastore.Rating |
db.Rating |
A Blobstore key |
blobstore.BlobKey |
ext.blobstore.BlobKey |
.