
pexpect.readthedocs.io
Pexpect version 4.2 — Pexpect 4.2.1 documentationPexpect version 4.2. Pexpect version 4.2. Pexpect makes Python a better tool for controlling other applications. Pexpect is a pure Python module for spawning child applications; controlling them; and responding to expected patterns in their output. Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a child application and control it as if a human were typing commands. Special EOF and TIMEOUT patterns. Find the end of line – CR/LF conventions. Beware of and * at the end of patterns.
http://pexpect.readthedocs.io/