def FetchAllEntitites():
 ns = list(datastore.Query('__namespace__').Run())
 original_ns = namespace_manager.get_namespace()
 entities_set = []
 for namespace in ns:
  namespace_manager.set_namespace(namespace.key().name())
  kinds_list = list(datastore.Query('__kind__').Run())
  for kind_entity in kinds_list:
   ents = list(datastore.Query(kind_entity.key().name()).Run())
   for ent in ents:
    entities_set.append(ent)
 namespace_manager.set_namespace(original_ns)
 return entities_set

def FetchAllEntitites ( ) : ns = list ( datastore . Query ( '__namespace__' ) . Run ( ) ) original_ns = namespace_manager . get_namespace ( ) entities_set = [ ] for namespace in ns : namespace_manager . set_namespace ( namespace . key ( ) . name ( ) ) kinds_list = list ( datastore . Query ( '__kind__' ) . Run ( ) ) for kind_entity in kinds_list : ents = list ( datastore . Query ( kind_entity . key ( ) . name ( ) ) . Run ( ) ) for ent in ents : entities_set . append ( ent ) namespace_manager . set_namespace ( original_ns ) return entities_set
returns all datastore entities from all namespaces as a list .