首页IT科技improved version(Improved Fexpect now on pypi)

improved version(Improved Fexpect now on pypi)

时间2025-04-30 18:04:49分类IT科技浏览4150
导读:Improved Fexpect now on pypi...

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.

创心域SEO版权声明:以上内容作者已申请原创保护,未经允许不得转载,侵权必究!授权事宜、对本内容有异议或投诉,敬请联系网站管理员,我们将尽快回复您,谢谢合作!

展开全文READ MORE
sudo执行命令(sudoedit命令 – 以另外一个用户文件编辑文件) 优化搜索曝光次数的方法有哪些(优化搜索曝光次数的方法,优化搜索点击次数的方法)