Tags: python

A guide to connecting to Twitter from Python using Twython [↗]

Came across this whilst browsing the Raspberry Pi Learning Resources. I’d not heard of the Twython module and it looks like it could be a lot of fun to play with. I’m thinking I’ll probably dust off my Raspberry Pi for this and I may even attempt a bit of hardware hacking too.

About Faviconator

The other night, I built Faviconator, a little GUI application for creating favicon files from images. I’m pretty pleased with the result and the app works quite well, I think.

Screenshot of Faviconator running on Ubuntu

Screenshot of Faviconator running on Ubuntu.

To be honest, it’s not often that I have to create favicons, but that’s one of the reasons I created the app. Prior to creating the app, I had to try and remember (read as lookup via Google) some archaic ImageMagick command, or use one of the many ad-ridden web services, and neither was a pleasant experience.

Also, when I was using OS X, I really liked the fact that the App Store was full of little apps that were designed to perform a single task. I’d like to see more of that for Ubuntu, so Faviconator and pwgenGUI are contributions towards meeting that goal.

Anyhow, if you’d like to try the app, you can find more details here.

About pwgenGUI

At work, I often have to create new passwords for users. It’s not terribly difficult to do and I usually open my browser, navigate to one of the many password generating sites and grab a new password. Easy, but then I thought to myself, could it be even easier? I mean, I really should be able to do this with just 1 click of the mouse.

So, the other night, I created a little Python+GTK GUI application to do just that. pwgenGUI is basically a front-end for pwgen, a command line tool for generating passwords. I’m not sure if anyone else will find it useful, but I’ve packaged the application for Ubuntu and installation instructions can be found here.

Building Python GTK+ Applications on Ubuntu

Recently, I’ve been playing around with building some little Python GTK+ applications on Ubuntu. It’s lots of fun and a welcome break from my normal PHP work. I’ve not done any real Python development since I ended my CrunchBang project, so I’m somewhat rusty. Finding good documentation to help me develop my applications has been a bit hit and miss. I guess this is mostly due to my own ignorance on the subject (not knowing what to search for), but also because there is a lot of old GTK+ 2 documentation around, which Google insists on returning results for. Grr.

If there was one reference point I wished I had known about before I started, it would have been the PyGObject (aka PyGI) page on the GNOME wiki. It has a Documentation section that contains links to the resources that I’ve painstakingly found myself over the last few days. Doh.

The documentation that I’ve found most helpful is:

  1. Python GObject Introspection API Reference
  2. The Python GTK+ 3 Tutorial
  3. GNOME Platform Demos in Python

Anyhow, this post is mostly a note-to-self, but hopefully it might save others from wasting time searching with Google.

Discover Flask [↗]

This popped-up on Hacker News the other day. It’s not new, but I’ve often looked at Flask and wished I used Python more, instead of PHP. Anyhow, if you’re like me and want to improve your Python knowledge, these tutorials are really good. You can view the entire video playlist here.