tempfilemgr is a Python 2.x module to easily create temporary files and directories, and to make sure that all of them are deleted after use. It adds several useful features to the standard tempfile module.
Main advantages (compared to the standard tempfile module):
The atexit module can be used to clean all temporary files/dirs at the end of a script:
import atexit, tempfilemgr atexit.register(tempfilemgr.deleteAllTempFiles)
CeCILL (open-source GPL compatible): see source code and http://www.cecill.info for details.
Click on the zip file below.