Fexpect is an extension to fabric for handling prompts with pexpect scripts.
Provisional documentation in these blogposts:
usage
from ilogue.fexpect import expect, expecting, run
prompts = []
prompts += expect('What is your name?','Jasper')
prompts += expect('Where do you live?','Frankfurt')
with expecting(prompts):
run('command')
You can use the included fabfile.py to run the fexpect tests:
fab test -p 'yourlocalpassword'
Note however that the tests may have different requirements (more recent fabric version). You can install these with the traditional:
python setup.py test
contributors
Jasper van den Bosch - ilogue
Michael Ivanov
Metadata
Release files for fexpect 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fexpect-0.1.tar.gz | 4.4 kB | Details |
Release files / fexpect-0.1.tar.gz
| Download URL | fexpect-0.1.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89a492e2cbc2d19ece30d52c45a6e1c0d9cdcdfd798da6633cdf670762f2ea87
|
|
BLAKE2b-256 checksum How to use checksums |
841308ffd91f8a444bfc03e8a67f51579010fe020a8a3b75572acfddb45d8a46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |