def get_installed_pypackages():
    return {p.project_name.lower(): p for p in pkg_resources.working_set}
def index(self, request):
        queryset = Condition.objects.select_related('source', 'target_option')
        serializer = ConditionIndexSerializer(queryset, many=True)
        return Response(serializer.data)