Skip to main content

Fexpect is an extension to fabric for handling prompts with pexpect scripts.

Provisional documentation in these blogposts:

Please report bugs, request features at the github repository: http://github.com/ilogue/fexpect

Seems it doesn’t work well with easy_install, please install with pip.

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fexpect-0.2.post1.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file fexpect-0.2.post1.tar.gz.

File metadata

  • Download URL: fexpect-0.2.post1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fexpect-0.2.post1.tar.gz
Algorithm Hash digest
SHA256 0bb2f2573dd152bcf13e9c6b1430792e677ae541a4a552e1292b1dc7fcaa8aa8
MD5 798bbd9d69287740a1c9723996c0c01b
BLAKE2b-256 1603d18081675ac54ac0454953bc9b90024285c44130a42e78ce5082068231f0

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.post17

1 file

0.2.post7

1 file

0.2.post5

1 file

0.2.post3

1 file

This release

0.2.post1 This release

1 file

0.1.post18

1 file

0.1-20120420

1 file

0.1-20120419

1 file

0.1-20120411

1 file

0.1-13-ge91f

1 file

0.1

1 file

0.0-20120411

1 file

0.0-20120407

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page