Use Tornadio to create a websockets RabbitMQ bridge

If you want to enable real-time push notifications to your users, SocketIO is your friend, if you don’t like NodeJS running on your server, or like me you are a python fan, then this guide to Tornado and TornadIO will make it simple to set up an implementation on your system.

In this post we go further and show you how to plug your Tornado implementation into a RabbitMQ message queue, and show you how to publish into Tornado (and your web client) to enable real-time communications for your web users without being tied to a single platform.

Writing a basic plugin framework in Python

While working on the initial version of DjangoSVN, I realised that one of the coolest things I could do with the DjangoSVN command interpreter was to make it pluggable. The idea was simple: You can set up a DjangoSVN server anywhere, then write your own custom plug-ins that you can just drop into the plug-in(…)

Announcing PyTranscode

PyTranscode is a set of classes that control and report from FFMPEG. They also make using FFMPEG from python very very simple.

Things you can do with PyTranscode:

  • Transcode videos from format a to b using presets stored in another file
  • Extract splash images from a video file (actually extracts a series of splash images at user-defined intervals)
  • Objectify video files – create a VideoObject form a file and it will provide you with all the details of the file from framerate to duration to formats used in both audio and video
  • Runner – run FFMPEG command and trap the output, reporting back percentage complete of any action

Amazon RDS and Django

Amazon has recently released a long-awaited feature addition to it’s Web Services infrastructure: Relational Databases. Having for a long time only had SimpleDB on offer (non-relational and weird to implement), it’s always been something of a struggle to get MySQL running on EC2. Traditionally one would have to set up a block storage device, mount(…)

Great Little Helpers For Django

Over time I’ve found several really great apps that can really help you out with your next app – these apps take a lot of the work out of handling large sections of your site and can make your life much easier when developing your next great webapp. So here’s the list of my top(…)

Django API’s – Seeking Simplicity

This is a small piece of code I’ve found myself usingh quite often when building API’s – what it does, and all it’s meant to do is validate a POST or GET request and return errors and values back to the API function. I was tired of writing endless “if x in request.POST/GET” lines (particularly(…)

Customising the Django Admin

One of my favourite features of Django is the auto-created admin, if you’re like me and hate having to create UI and validate froms, then Django’s back office comes like a saviour from the heavens. Unfortunately, sometimes it’s just necessary to have more control over how the admin looks and operates, the following tutorial will(…)


It’s been very quiet on this blog recently – mainly it’s been down to a new website I’ve been working on – It’s purpose: I wanted a place to update my social network accounts with images and videos from my phone, without having to hook up third party services like twitpic, also I really(…)

Django and JSON – Web services with an example from twitter

One of the great things about Python is the vast amount of libraries that are available to pull into your project – the resource at Vaults of Parnassus is a great place to start google code also tends to host lots of good python plugins. The same applies to wrappers for popular web services such(…)