def iter_variants(self):
for variant in self.repository.iter_variants(self.resource):<EOL><INDENT>yield Variant(variant, context=self.context, parent=self)<EOL><DEDENT>
Iterate over the variants within this package, in index order.

        Returns:
            `Variant` iterator.