From 101dc653f347368bf4fe9a3276cc58724a8e03fb Mon Sep 17 00:00:00 2001 From: Waylon Walker Date: Fri, 11 Jun 2021 07:49:42 -0500 Subject: [PATCH] Add unavailable packages node --- pypi-list.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pypi-list.py b/pypi-list.py index 8f1ce55..a546daf 100644 --- a/pypi-list.py +++ b/pypi-list.py @@ -71,6 +71,12 @@ pipeline = Pipeline( outputs="available", name="available", ), + node( + lambda words, packages: list(set(words) & set(packages)), + inputs=["words", "packages"], + outputs="unavailable", + name="unavailable", + ), node( lambda x: x, inputs="packages",