wexpect


Namewexpect JSON
Version 4.0.0 PyPI version JSON
download
home_page
SummaryWindows alternative of pexpect
upload_time2020-04-08 14:58:26
maintainer
docs_urlNone
authorNoah Spurrier, Richard Holden, Marco Molteni, Kimberley Burchett, Robert Stone, Hartmut Goebel, Chad Schroeder, Erick Tryzelaar, Dave Kirby, Ids vander Molen, George Todd, Noel Taylor, Nicolas D. Cesar, Alexander Gattin, Geoffrey Marshall, Francisco Lourenco, Glen Mabey, Karthik Gurusamy, Fernando Perez, Corey Minyard, Jon Cohen, Guillaume Chazarain, Andrew Ryan, Nick Craig-Wood, Andrew Stone, Jorgen Grahn, Benedek Racz
requires_python
licenseMIT
keywords scripting automation expect pexpect wexpect
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # **wexpect**

[![Build status](https://ci.appveyor.com/api/projects/status/tbji72d5s0tagrt9?svg=true)](https://ci.appveyor.com/project/raczben/wexpect)
[![codecov](https://codecov.io/gh/raczben/wexpect/branch/master/graph/badge.svg)](https://codecov.io/gh/raczben/wexpect)
[![Documentation Status](https://readthedocs.org/projects/wexpect/badge/?version=latest)](https://wexpect.readthedocs.io/en/latest/?badge=latest)

*Wexpect* is a Windows variant of [pexpect](https://pexpect.readthedocs.io/en/stable/).

*Pexpect* is a Python module for spawning child applications and controlling
them automatically.

## You need wexpect if...

 - you want to control any windows console application from python script.
 - you want to write test-automation script for a windows console application.
 - you want to automate your job by controlling multiple application parallel, synchoronusly.

## **Install**

    pip install wexpect

## **Usage**

To interract with a child process use `spawn` method:

```python
import wexpect
child = wexpect.spawn('cmd.exe')
child.expect('>')
child.sendline('ls')
child.expect('>')
print(child.before)
child.sendline('exit')
```

For more information see [examples](./examples) folder.

---
## REFACTOR

**Refactor has been finished!!!** The default spawn class is `SpawnPipe` from now. For more
information read [history](https://wexpect.readthedocs.io/en/latest/history.html#refactor).

---
## What is wexpect?

Wexpect is a Python module for spawning child applications and controlling
them automatically. Wexpect can be used for automating interactive applications
such as ssh, ftp, passwd, telnet, etc. It can be used to a automate setup
scripts for duplicating software package installations on different servers. It
can be used for automated software testing. Wexpect is in the spirit of Don
Libes' Expect, but Wexpect is pure Python. Other Expect-like modules for Python
require TCL and Expect or require C extensions to be compiled. Wexpect does not
use C, Expect, or TCL extensions.

Original Pexpect should work on any platform that supports the standard Python pty module. While
Wexpect works on Windows platforms. The Wexpect interface focuses on ease of use so that simple
tasks are easy.

---
## Dev

Thanks for any contributing!

### Test

To run test, enter into the folder of the wexpect's repo then:

`python -m unittest`

### Deploy

The deployment itself is automated and done by [appveyor](https://ci.appveyor.com/project/raczben/wexpect).
See `after_test` section in [appveyor.yml](appveyor.yml) for more details.

The wexpect uses [pbr](https://docs.openstack.org/pbr/latest/) for managing releasing procedures.
The versioning is handled by the pbr. The *"master-version"* is the git tag. Pbr derives the package
version from the git tags.
            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "wexpect",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "scripting, automation, expect, pexpect, wexpect",
    "author": "Noah Spurrier, Richard Holden, Marco Molteni, Kimberley Burchett, Robert Stone, Hartmut Goebel, Chad Schroeder, Erick Tryzelaar, Dave Kirby, Ids vander Molen, George Todd, Noel Taylor, Nicolas D. Cesar, Alexander Gattin, Geoffrey Marshall, Francisco Lourenco, Glen Mabey, Karthik Gurusamy, Fernando Perez, Corey Minyard, Jon Cohen, Guillaume Chazarain, Andrew Ryan, Nick Craig-Wood, Andrew Stone, Jorgen Grahn, Benedek Racz",
    "author_email": "betontalpfa@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/da/78/2a8ca6478f26593e036eef5462afd9f0fb0d3c209ecc448244875b6f5119/wexpect-4.0.0.tar.gz",
    "platform": "",
    "description": "# **wexpect**\n\n[![Build status](https://ci.appveyor.com/api/projects/status/tbji72d5s0tagrt9?svg=true)](https://ci.appveyor.com/project/raczben/wexpect)\n[![codecov](https://codecov.io/gh/raczben/wexpect/branch/master/graph/badge.svg)](https://codecov.io/gh/raczben/wexpect)\n[![Documentation Status](https://readthedocs.org/projects/wexpect/badge/?version=latest)](https://wexpect.readthedocs.io/en/latest/?badge=latest)\n\n*Wexpect* is a Windows variant of [pexpect](https://pexpect.readthedocs.io/en/stable/).\n\n*Pexpect* is a Python module for spawning child applications and controlling\nthem automatically.\n\n## You need wexpect if...\n\n - you want to control any windows console application from python script.\n - you want to write test-automation script for a windows console application.\n - you want to automate your job by controlling multiple application parallel, synchoronusly.\n\n## **Install**\n\n    pip install wexpect\n\n## **Usage**\n\nTo interract with a child process use `spawn` method:\n\n```python\nimport wexpect\nchild = wexpect.spawn('cmd.exe')\nchild.expect('>')\nchild.sendline('ls')\nchild.expect('>')\nprint(child.before)\nchild.sendline('exit')\n```\n\nFor more information see [examples](./examples) folder.\n\n---\n## REFACTOR\n\n**Refactor has been finished!!!** The default spawn class is `SpawnPipe` from now. For more\ninformation read [history](https://wexpect.readthedocs.io/en/latest/history.html#refactor).\n\n---\n## What is wexpect?\n\nWexpect is a Python module for spawning child applications and controlling\nthem automatically. Wexpect can be used for automating interactive applications\nsuch as ssh, ftp, passwd, telnet, etc. It can be used to a automate setup\nscripts for duplicating software package installations on different servers. It\ncan be used for automated software testing. Wexpect is in the spirit of Don\nLibes' Expect, but Wexpect is pure Python. Other Expect-like modules for Python\nrequire TCL and Expect or require C extensions to be compiled. Wexpect does not\nuse C, Expect, or TCL extensions.\n\nOriginal Pexpect should work on any platform that supports the standard Python pty module. While\nWexpect works on Windows platforms. The Wexpect interface focuses on ease of use so that simple\ntasks are easy.\n\n---\n## Dev\n\nThanks for any contributing!\n\n### Test\n\nTo run test, enter into the folder of the wexpect's repo then:\n\n`python -m unittest`\n\n### Deploy\n\nThe deployment itself is automated and done by [appveyor](https://ci.appveyor.com/project/raczben/wexpect).\nSee `after_test` section in [appveyor.yml](appveyor.yml) for more details.\n\nThe wexpect uses [pbr](https://docs.openstack.org/pbr/latest/) for managing releasing procedures.\nThe versioning is handled by the pbr. The *\"master-version\"* is the git tag. Pbr derives the package\nversion from the git tags.",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Windows alternative of pexpect",
    "version": "4.0.0",
    "split_keywords": [
        "scripting",
        " automation",
        " expect",
        " pexpect",
        " wexpect"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "5ec453cd7a2f1147bd13e4f3f5a510b0",
                "sha256": "de9e739e78ec4d74a39bf8499904dacb6c594007a674fb7e10752c9b131f6522"
            },
            "downloads": -1,
            "filename": "wexpect-4.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "5ec453cd7a2f1147bd13e4f3f5a510b0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 78094,
            "upload_time": "2020-04-08T14:58:26",
            "upload_time_iso_8601": "2020-04-08T14:58:26.072675Z",
            "url": "https://files.pythonhosted.org/packages/da/78/2a8ca6478f26593e036eef5462afd9f0fb0d3c209ecc448244875b6f5119/wexpect-4.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-04-08 14:58:26",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "wexpect"
}
        
Elapsed time: 0.02418s