OLD | NEW |
(Empty) | |
| 1 .. image:: https://travis-ci.org/pexpect/pexpect.png?branch=master |
| 2 :target: https://travis-ci.org/pexpect/pexpect |
| 3 :align: right |
| 4 :alt: Build status |
| 5 |
| 6 Pexpect is a Pure Python Expect-like module |
| 7 |
| 8 Pexpect makes Python a better tool for controlling other applications. |
| 9 |
| 10 Pexpect is a pure Python module for spawning child applications; controlling |
| 11 them; and responding to expected patterns in their output. Pexpect works like |
| 12 Don Libes' Expect. Pexpect allows your script to spawn a child application and |
| 13 control it as if a human were typing commands. |
| 14 |
| 15 Pexpect can be used for automating interactive applications such as ssh, ftp, |
| 16 passwd, telnet, etc. It can be used to a automate setup scripts for duplicating |
| 17 software package installations on different servers. It can be used for |
| 18 automated software testing. Pexpect is in the spirit of Don Libes' Expect, but |
| 19 Pexpect is pure Python. |
| 20 |
| 21 The main features of Pexpect require the pty module in the Python standard |
| 22 library, which is only available on Unix-like systems. Some features—waiting |
| 23 for patterns from file descriptors or subprocesses—are also available on |
| 24 Windows. |
| 25 |
| 26 If you want to work with the development version of the source code then please |
| 27 read the DEVELOPERS.rst document in the root of the source code tree. |
| 28 |
| 29 Free, open source, and all that good stuff. |
| 30 |
| 31 You can install Pexpect using pip:: |
| 32 |
| 33 pip install pexpect |
| 34 |
| 35 `Docs on ReadTheDocs <http://pexpect.readthedocs.org/>`_ |
| 36 |
| 37 PEXPECT LICENSE:: |
| 38 |
| 39 http://opensource.org/licenses/isc-license.txt |
| 40 |
| 41 Copyright (c) 2013-2014, Pexpect development team |
| 42 Copyright (c) 2012, Noah Spurrier <noah@noah.org> |
| 43 |
| 44 PERMISSION TO USE, COPY, MODIFY, AND/OR DISTRIBUTE THIS SOFTWARE FOR ANY |
| 45 PURPOSE WITH OR WITHOUT FEE IS HEREBY GRANTED, PROVIDED THAT THE ABOVE |
| 46 COPYRIGHT NOTICE AND THIS PERMISSION NOTICE APPEAR IN ALL COPIES. |
| 47 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 48 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 49 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 50 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 51 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 52 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 53 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 54 |
| 55 This license is approved by the OSI and FSF as GPL-compatible. |
OLD | NEW |