# `Pypi.Scanner`
[🔗](https://github.com/gtri/lowendinsight/blob/main/lib/pypi/pypi_scanner.ex#L1)

Scanner scans for python dependencies to run analysis on.

# `query_pypi`

```elixir
@spec query_pypi(String.t()) :: {:ok, map()} | String.t()
```

query_npm: function that takes in a package and returns an analysis
on that package's repository using analyser_module.  If the package url cannot
be reached, an error is returned.

# `scan`

```elixir
@spec scan(boolean(), map()) :: {[], 0}
@spec scan(boolean(), %{python: []}) :: {[any()], non_neg_integer()}
```

scan: called when pi? is false, returning an empty list and 0

# `scan`

scan: takes in a path to node dependencies and returns the
dependencies mapped to their analysis and the number of dependencies

---

*Consult [api-reference.md](api-reference.md) for complete listing*
