Pypi.Scanner (LowEndInsight v0.9.0)

Copy Markdown View Source

Scanner scans for python dependencies to run analysis on.

Summary

Functions

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: called when pi? is false, returning an empty list and 0

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

Functions

query_pypi(package)

@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(pypi?, project_types)

@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(pypi?, map, option \\ ".")

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