Ask /r/Pyramid: Have you written any "single-file" applications in Pyramid?
I have tried to write "single-file" applications in Bottle, Flask, Tornado and a couple of other frameworks. My motivation for doing is is that I use Vim. In Vim, I can fold sections of a file and name them, that's actually much better than having files spread around in different folders. ( I am a lone gunman)
Watch this video to see what I mean. Skip to 3:50 to see the folds in all their glory. http://vimcasts.org/episodes/how-to-fold/
Another advantage is that I don't have to remember where a class or a function is, it's just right there or it's just a "zi" away.
Pyramid allows me to write applications in such a way. Can you share any tips or examples of Pyramid applicatons written this way?
Posted Dec 17, 2012, 5:18 AM UTC
This is more of a general Python question than a Pyramid-specific one, and you'd likely be better off asking on the Python subreddit; a "single file Pyramid application" in the broader sense is just a "Python script that happens to use Pyramid as a library" and tips for Python scripts are all the same no matter which libraries the script uses.
Quite right. My bad.