PYWinService create exe file by py2exe & install to windows service File Description ServiceModule.py The task code you need to run in windows service. you can modify the do_something method what you want to do. setup.py py2exe script for package python code