Here is a bit of code I put together using libgmail and python to download the attachments of all emails with a given label in my gmail account. It is pretty simple and the libgmail library can enable you to do the same thing for emails in a certain folder, or emails as the result of a certain search term. The code isn’t incredibly robust, but it gets the job done.
I call mine getatt and it run it like this:
getatt mylabel
It then drops each attachment out as a separate file in the current directory. I use it for grading I have to do for an undergraduate class where I am getting hundreds of emails a week with attachments I have to grade.
Python Code: getatt
Software Carpentry is a great guide for anyone who is new to scientific computing. It covers all the basics and is probably good for anyone who would like to be doing more programming and computing, but is overwhelmed with where to start. I highly recommend it and I refer to it now and again for brushing up in different areas. You can follow it through in sequence or jump around in it at your skill level. It has a lot to offer.
Been using matplotlib to make some sonograms for our acoustic monitoring stations. Has some nice plotting functions that are inspired by how Matlab does plotting. They have nice export options with SVG, PNG etc, plus the GUI defaults allow you to zoom around on the plot. The documentation isn’t the greatest, but with enough web searching and trolling the mailing list archives you can get the hang of it.
Here is grab from a sonogram plot that I did using the python wave library and matplotlib’s specgram(function).
