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 who
import StringIO tmp = StringIO.StringIO() writer = csv.writer(tmp) writer.writerow(["foo", "foo,bar", "bar"]) contents = tmp.getvalue() tmp.close() print contents