def __repr__(self):
        return "<Requirement(package={package}, version='{version}')>".format(
            package=self.package, version=self.version)
def _get_drag_data(self, dragged_item):
    return str(self._items.index(dragged_item))