Pylons tip #5 – Streaming static files

Pylons makes it super easy to return data to a client. You just return a string from your controller method!

class HelloController(BaseController):
 
def index(self):
return ‘Hello World!’

Very nice. However, what if you want to serve up a potentially quite large file to the client? [...]