Skip to main content

extension of fabric for handling prompts with pexpect

Project description

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'

contributors

  • Jasper van den Bosch - ilogue

  • Michael Ivanov

Project details


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.1-20120411.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file fexpect-0.1-20120411.tar.gz.

File metadata

File hashes

Hashes for fexpect-0.1-20120411.tar.gz
Algorithm Hash digest
SHA256 8d35f4cad353dfc815877a556c0ab612dbefe7236aad579cdfd474f8b3732465
MD5 1e2886fb30f25e090652274e7606f755
BLAKE2b-256 28d10e52c168a44ca7fb4bca5f3215674ea578b9a5af389306c620df59b86428

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page