Improved Fexpect now on pypi
Saturday 07 April 2012
I got nice feedback on fexpect from some users. Michael Ivanov wrote that he uses fexpect for end-to-end testing of the localwiki Ubuntu packages on EC2 instances. He suggested to dynamically link pexpect. His fix has now been integrated in the new fexpect github repository. The code now feels mature enough and has been published on pypi, so you can now easily install it with your favourite python package manager;
pip install fexpect easy_install fexpect
or list it as a requirement in you fabric project. To import the newly packaged version:
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')
Enjoy!
Comments? Write me an email or discuss on facebook, google+ or twitter.
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)