title: generating a CSV file online on Google App Engine
body: <p>I am using Google App Engine (python), I want my users to be able to download a CSV file generated using some data from the datastore (but I don't want them to download the whole thing, as I re-order the columns and stuff).</p>
  
  <p>I have to use the csv module, because there can be cells containing commas. But the problem that if I do that I will need to write a file, which is not allowed on Google App Engine</p>
  
  <p>What I currently have is something like this: </p>
  
  <pre><code>    tmp = open("tmp.csv", 'w')
      writer = csv.writer(tmp)
      writer.writerow(["foo", "foo,bar", "bar"])
  </code></pre>
  
  <p>So I guess what I would want to do is either to handle cells with commas.. or to use the csv module without writing a file as this is not possible with GAE.. </p>