def _model_to_entity_schema(document_class):
 schema = {}
 for (name, prop) in document_class._properties.iteritems():
  _add_schema_entry(prop.__class__, name, schema)
 return schema

def _model_to_entity_schema ( document_class ) : schema = { } for ( name , prop ) in document_class . _properties . iteritems ( ) : _add_schema_entry ( prop . __class__ , name , schema ) return schema
produce schema from ndb model class .