Python Skin

Python PExpect for Windows: WExpect

PExpect is a Python library used to interact with other executable applications from within your Python script. I use it a lot to interact with FFMpeg. Unfortunately, PExpect does not work out of the box with Windows systems – it is designed specifically for Linux (and similar operating systems such as Mac OS X).

Thankfully, there is a fork of PExpect called WExpect. This version brings the functionality of PExpect to a Windows environment.

In order to use WExpect, you must install CygWin, and then install the WExpect script into your system (dropping the py file into your working directory is usually good enough).

I’ve found the functionality is pretty much the same, so you should be able to use the PExpect manual and examples and apply them to this Microsoft Windows variant.

WExpect does not have a sexy homepage or website touting it’s amazing features. It’s just a py file uploaded on a edu website. In case this super handy text file disappears from the internet, here is a copy of it I’ve uploaded to Github.

Download WExpect from Github

I did not develop this application. I am simply providing a copy in Github for your convenience.

Anthony Eden is a technologist. He's been developing software and websites and working in broadcast media for over 8 years now. He works full time for Hope Media, and provides contract services through Media Realm.

Follow Anthony on Twitter: @anthony_eden or Google+

But Wait... There's More!

Sign up for the email newsletter about media and technology.

Tags: Programming · Python

Stay Up to Date

Every few weeks we’ll let you know about the latest in web, broadcast and media.

Worth a read…
Hope Media iPhone App

Recent Work: Hope Media iPhone App

Radio Automation Software

Radio Station Playout / Automation Software

Radio Studio Design and Build

Building a Radio Studio

Free Software

Free Software for Radio Stations

Google SEO Logo

White-hat SEO Crash Course & SEO Tips

Popular articles…
Church Streaming

How to: Live Webcast your Church Service – Getting Started

OpenVPN Tunnel Through Proxy

OpenVPN Client through a Restrictive Firewall and Proxy

Wordpress Pros and Cons

WordPress Pros and Cons

Recently published…
Radio-Donations-Page-Design-and-Usability---header

Radio Station Website: Donation Page Design and Usability

Streaming Radio Player: Development

Radio Station Website: Radio Player Design & Development

Building a Radio Station Website-Building

Developing a Radio Station Website

Stay Up to Date

Every few weeks we’ll let you know about the latest in web, broadcast and media.