I have a python dictionary that I would like to store in Google's BigTable datastore (it is an attribute in a db.Model
class).
Is there an easy way to do this? i.e. using a db.DictionaryProperty
? Or do I have to use pickle to serialize my dictionary? My dictionary is relatively straight forward. It consists of strings as keys, but it may also contain sub dictionaries for some keys. For example:
{
'myKey' : 100,
'another' : 'aha',
'a sub dictionary' : { 'a': 1, 'b':2 }
}
PS: I would like to serialize as binary, not text if possible.