What is the alternative for Entity.java in python version? I do not want any data model. I want my entities without a predefined structure. I just want them to be key and value pairs as the above Entity.java is.
Can I do it in Python version?
What is the alternative for Entity.java in python version? I do not want any data model. I want my entities without a predefined structure. I just want them to be key and value pairs as the above Entity.java is.
Can I do it in Python version?
Try the Expando class.
class MyModel(db.Expando)
pass
You can then add properties by simply setting the value. And they can be removed too.
edit: I should also have mentioned the dynamic properties method. It will return the list of properties defined for a particular entity.
The 'low level' API is in google.appengine.api.datastore. There's no public documentation for it, but the module itself has fairly complete docstrings.