@property
  def parent(self):
    if '/' in self._string:
      return Key(self.list[:-1])
    raise ValueError('%s is base key (it has no parent)' % repr(self))
Returns the parent Key (all namespaces except the last).
dataset/ETHPy150Open datastore/datastore/datastore/core/key.py/Key.parent