g-Off.net | Geoffrey Foster

14Oct/090

Announcing PyPush v0.1

iPhone push notificationVersion 0.1 of PyPush is now available. PyPush is a rewrite/fork of apns-python-wrapper, that is, PyPush is a python module for interacting with Apples Push Notification Server.

Code is available from here where bugs can also be reported.

Visit the project page

Licensed under the Apache 2.0 license.

Tagged as: , No Comments
18Mar/0915

A Python repeatable threading.Timer class

I had a function that I wanted to be called repeatedly every x seconds but couldn't find a nice way of doing this. The python threading module has a Timer class which will wait for the given number of seconds and then execute the passed in callable object. Unfortunately, once it has executed that code it is no longer useable. So based upon that class I whipped up the following RepeatableTimer. It's not "hard real-time" or anything since it doesn't account for the time taken to execute the given function, but it's good enough for what I needed.