{ "name": "py-pexpect", "version": "4.9.0", "summary": "pexpect: drives interactive programs (ssh, sftp, ftp, shells) by waiting for their prompts and answering them (Python module)", "category": "library", "license": "ISC", "homepage": "https://github.com/pexpect/pexpect", "source": { "url": "https://files.pythonhosted.org/packages/9e/c3/059298687310d527a58bb01f3b1965787ee3b40dce76752eda8b44e9a2c5/pexpect-4.9.0-py2.py3-none-any.whl", "sha256": "7236d1e080e4936be2dc3e326cec0af72acf9212a7e1d060210e70a47e253523" }, "watch": { "kind": "pypi", "package": "pexpect" }, "deps": [ "python", "py-ptyprocess" ], "env_packages": [], "static": false, "nss": false, "check": "bin/python3 -c 'import pexpect; c = pexpect.spawn(\"sh\", [\"-c\", \"printf \\\"name? \\\"; read x; echo got-$x\"], encoding=\"utf-8\", timeout=10); c.expect(\"name\\\\? \"); c.sendline(\"bvs\"); c.expect(\"got-(\\\\w+)\"); print(c.match.group(1)); c.expect(pexpect.EOF)' | has -x bvs && echo 'pexpect 4.9.0: a shell asked a question in a pseudo-terminal, answered, and its reply matched'" }