如何列出数据存储区中的种类?

kos*_*tmo 5 google-app-engine

我只需要为我自己的应用程序解决这个问题,所以在这里重新发布答案.

Dav*_*ith 5

时间已经过去了,因为这被问到并回答了.现在有一种更简单的方法.

请参阅http://code.google.com/appengine/docs/python/datastore/metadataqueries.html

q = Kind.all()
for kind in q.fetch(100):
  print kind.kind_name
Run Code Online (Sandbox Code Playgroud)