python - Saving a temporary file -


I am using xlwt in Python to create an Excel spreadsheet. You can exchange it for almost all things that generate any files; It is important that what I want to do with the file.

  xlwt import * w = workbook () # ... some w.save ('filename.xls')  

I want to There are two usage cases for the pass file: I stream it in user's browser or I attach it to an email. In both cases the file only requires the length of the web request that it generates.

What I am doing, the reason for starting this thread is saving in a real file on the file system its obstacles (stop overwriting, once the file is cleaned), somewhere I "save it" "Where is it only in memory and only for the duration of the request?

(or if it should be unstable)


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -