A Python interface to interact with gmail.
A Python interface to run functions in the background.
- background - run a function in the background
>>> import backpy >>> def myFunction(text): while 1: print(text)
>>> thread = backpy.background(target = myFunction, args = ("hello!")) # run >>> # the function myFunction in the background with args ("hello!") >>> thread._stop() # stop the thread. >>> def myEndFunction(data): print('Finished', data) >>> thread = backpy.background(mode = 'basic+finish', target = myFunction, args = ("hello!"), finish = myEndFunction, fargs = ("data")) >>> thread._stop() # stop the thread. </pre>
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
No source distribution files available for this release. See tutorial on generating distribution archives.