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

improved version(Improved Fexpect now on pypi)

时间2025-06-13 19:32:14分类IT科技浏览5024
导读: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
vscode如何安装eslint(VSCode中ESLint插件修复+配置教程) 大学生怎么赚点钱(学生如何赚钱-大学生如何靠副业**赚钱?(靠谱的**经验分享))