pypi_inspector.routes#

Module Contents#

Classes#

Functions#

parse(→ packaging.version.Version)

Parse the given version string and return a Version object

_get_dist(first, second, rest, distname)

handle_bad_request(e)

index()

versions(project_name)

distributions(project_name, version)

distribution(project_name, version, first, second, ...)

mailto_report_link(project_name, version, file_path, ...)

Generate a mailto report link for malicious code.

file(project_name, version, first, second, rest, ...)

Attributes#

pypi_inspector.routes.pypi_bp[source]#
pypi_inspector.routes.dists[source]#
pypi_inspector.routes.parse(version: str) packaging.version.Version[source]#

Parse the given version string and return a Version object

class pypi_inspector.routes.Distribution[source]#
abstract namelist()[source]#
abstract read()[source]#
class pypi_inspector.routes.ZipDistribution(f)[source]#

Bases: Distribution

namelist()[source]#
contents(filepath)[source]#
class pypi_inspector.routes.TarGzDistribution(f)[source]#

Bases: Distribution

namelist()[source]#
contents(filepath)[source]#
pypi_inspector.routes._get_dist(first, second, rest, distname)[source]#
pypi_inspector.routes.handle_bad_request(e)[source]#
pypi_inspector.routes.index()[source]#
pypi_inspector.routes.versions(project_name)[source]#
pypi_inspector.routes.distributions(project_name, version)[source]#
pypi_inspector.routes.distribution(project_name, version, first, second, rest, distname)[source]#

Generate a mailto report link for malicious code.

pypi_inspector.routes.file(project_name, version, first, second, rest, distname, filepath)[source]#