I want to execute a function every 60 seconds on Python but I don't want to be blocked meanwhile.
How can I do it asynchronously?
if __name__ == '__main__':
You could try the threading.Timer class: http://docs.python.org/library/threading.html#timer-objects.
import threading def f(): # do something here ... # call f() again in 60 seconds threading.Timer(60, f).start() # start calling f now and every 60 sec thereafter f()