scglue.check.CmdChecker

class scglue.check.CmdChecker(name, cmd, vregex, vmin=None, install_hint=None)[source]

Bases: Checker

Checks availability and version of a command line dependency

Parameters:
  • name (str) – Name of the dependency

  • cmd (str) – Command used to check version

  • vregex (str) – Regular expression used to extract version from command output

  • vmin (typing.Optional[str]) – Minimal required version

  • install_hint (typing.Optional[str]) – Install hint message to be printed if dependency is unavailable

Methods

check

Check availability and version