There were some approaches to controlling Winamp from Python. Since I lately needed one, I started googling for a solution that would suit my needs. Turned out all of them give control only over a limited number of Winamp functionalities. So, I decided to write my own.
I'm publishing this to change the above situation. So, if you need an easy to use and comprehensive Winamp controlling module for Python, try mine. It even supports undocumented features like obtaining of the volume setting. It is based on the standard ctypes module so you won't even need the win32 extensions to Python. Just make sure you have at least Python 2.5 and it will work.
Download:
winamp.py
Note: I was too lazy to add proper docstrings but the code should be quite readable I think.
Subscribe to:
Post Comments (Atom)
7 Comments:
Thanks so much for this!
I have used this module in a simple server application, with which I interact using an HTML form served by Apache running mod_python.
By pointing my iPhone browser to the page, I can control my Winamp from anywhere in the house over WiFi... or anywhere on the Internet! :)
Thank you again,
Ben
Nice to know you found it useful.
Thanks for letting me know.
Thanks!
Using your module and twyt, it took me over a minute to write a simple script to post updates of now playing tracks from winamp to twitter.
Hi! Thank's you for your library, it's really usefull.
Using it a made a good alarm clock, which starts winamp with volume=0 and after that slowly increase volume)
Here you can see it, if you are interesting:
добрый будильник на python
Thanks man :)
You have no idea how much time I spent looking for something like this. Thanks.
Would you like me to make a package out of it, and perhaps also publish API documentation somewhere, so users can easily install the module? I also thinking of uploading it to PyPI. Let me know if you need help in that -- sridnearfar.org
Post a Comment