• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Pexpect is a Pure Python Expect-like module
2
3Pexpect makes Python a better tool for controlling other applications.
4
5Pexpect is a pure Python module for spawning child applications; controlling
6them; and responding to expected patterns in their output. Pexpect works like
7Don Libes' Expect. Pexpect allows your script to spawn a child application and
8control it as if a human were typing commands.
9
10Pexpect can be used for automating interactive applications such as ssh, ftp,
11passwd, telnet, etc. It can be used to a automate setup scripts for duplicating
12software package installations on different servers. It can be used for
13automated software testing. Pexpect is in the spirit of Don Libes' Expect, but
14Pexpect is pure Python. Unlike other Expect-like modules for Python, Pexpect
15does not require TCL or Expect nor does it require C extensions to be compiled.
16It should work on any platform that supports the standard Python pty module.
17The Pexpect interface was designed to be easy to use.
18
19If you want to work with the development version of the source code then please
20read the DEVELOPERS document in the root of the source code tree.
21
22Free, open source, and all that good stuff.
23http://pexpect.sourceforge.net/
24
25PEXPECT LICENSE
26
27    This license is approved by the OSI and FSF as GPL-compatible.
28        http://opensource.org/licenses/isc-license.txt
29
30    Copyright (c) 2012, Noah Spurrier <noah@noah.org>
31    PERMISSION TO USE, COPY, MODIFY, AND/OR DISTRIBUTE THIS SOFTWARE FOR ANY
32    PURPOSE WITH OR WITHOUT FEE IS HEREBY GRANTED, PROVIDED THAT THE ABOVE
33    COPYRIGHT NOTICE AND THIS PERMISSION NOTICE APPEAR IN ALL COPIES.
34    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
35    WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
36    MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
37    ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
38    WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
39    ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
40    OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
41
42