You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
857 B

4 years ago
  1. Pexpect is a pure Python module for spawning child applications; controlling
  2. them; and responding to expected patterns in their output. Pexpect works like
  3. Don Libes' Expect. Pexpect allows your script to spawn a child application and
  4. control it as if a human were typing commands.
  5. Pexpect can be used for automating interactive applications such as ssh, ftp,
  6. passwd, telnet, etc. It can be used to a automate setup scripts for duplicating
  7. software package installations on different servers. It can be used for
  8. automated software testing. Pexpect is in the spirit of Don Libes' Expect, but
  9. Pexpect is pure Python.
  10. The main features of Pexpect require the pty module in the Python standard
  11. library, which is only available on Unix-like systems. Some features—waiting
  12. for patterns from file descriptors or subprocesses—are also available on
  13. Windows.