I use xlwtin python to create an Excel spreadsheet. You can exchange this for almost anything that creates a file; this is what i want to do with the important file.
from xlwt import *
w = Workbook()
w.save('filename.xls')
I want to have two options for using the file: I transfer it to the user's browser or attach it to an email. In both cases, the file should only contain the duration of the web request that generates it.
What I get, the reason for starting this thread - saving the real file in the file system, has its own obstacles (stop overwriting, cleaning the file after it is executed). Somewhere I could "save" him where he lives only in memory and only at the time of the request?
source
share