Python – Run a task at specific intervals in python


Possible Duplicate:
Suggestions for a Cron like scheduler in Python?

What would be the most pythonic way to schedule a function to run periodically as a background task? There are some ideas here, but they all seem rather ugly to me. And incomplete.

The java Timer class has a very complete solution. Anyone know of a similar python class?

Best Answer

There is a handy event scheduler that might do what you need. Here's a link to the documentation: