def __init__(self, package, version):
        """Construct a new requirement.

        :param package: the package name.
        :param version: a semver compatible version specification.
        """
        self.package = package
        self.version = version
        if self.version and not re.match(r"[<=>~]", version[:2]):
            self.version = "=={}".format(self.version)
def __init__(self, host, loginUser, debug = False, trace = False, log=None, port=22, pexpectObject=None):
        self.pexpect = pexpect if not pexpectObject else pexpectObject
        self.debug = debug
        self.trace = trace
        self.host = host
        self._port = port
        self._connection = None
        self.modeList = []
        self._log = log
        self._bufferedCommands = None
        self._bufferedMode = None
        self._loginUser = loginUser
        self._resetExpect()