@cached_property<EOL><INDENT>def parent(self):<DEDENT>
if self._parent is not None:<EOL><INDENT>return self._parent<EOL><DEDENT>try:<EOL><INDENT>package = self.repository.get_parent_package(self.resource)<EOL>self._parent = Package(package, context=self.context)<EOL><DEDENT>except AttributeError as e:<EOL><INDENT>reraise(e, ValueError)<EOL><DEDENT>return self._parent<EOL>
Get the parent package.

        Returns:
            `Package`.