fluidasserts.helper.sca module

Software Composition Analysis helper.

exception fluidasserts.helper.sca.ConnError

Bases: fluidasserts.helper.http.ConnError

A connection error occurred.

http.ConnError wrapper exception.

fluidasserts.helper.sca.get_vulns_from_ossindex(pkg_mgr, package, version=None)

Search vulnerabilities on given package/version.

Parameters
  • package (str) – Package name.

  • version (Optional[str]) – Package version.

Return type

bool

fluidasserts.helper.sca.get_vulns_from_snyk(pkg_mgr, package, version=None)

Search vulnerabilities on given package/version.

Parameters
  • package (str) – Package name.

  • version (Optional[str]) – Package version.

Return type

bool

fluidasserts.helper.sca.get_vulns_ossindex(package_manager, package, version)

Search vulnerabilities on given package_manager/package/version.

Parameters
  • package_manager (str) – Package manager.

  • package (str) – Package name.

  • version (str) – Package version.

Return type

tuple

async fluidasserts.helper.sca.get_vulns_ossindex_async(package_manager, path, package, version)

Search vulnerabilities on given package_manager/package/version.

Parameters
  • package_manager (str) – Package manager.

  • package (str) – Package name.

  • version (str) – Package version.

Return type

tuple

fluidasserts.helper.sca.get_vulns_snyk(package_manager, package, version)

Search vulnerabilities on given package_manager/package/version.

Parameters
  • package_manager (str) – Package manager.

  • package (str) – Package name.

  • version (str) – Package version.

Return type

tuple

async fluidasserts.helper.sca.get_vulns_snyk_async(package_manager, path, package, version)

Search vulnerabilities on given package_manager/package/version.

Parameters
  • package_manager (str) – Package manager.

  • package (str) – Package name.

  • version (str) – Package version.

Return type

tuple