News for hackers. Stuff that matters.
Re:Rewriting Reddit (2005) by mox1 on Monday October 27, 2014 @01:24PM (#8516811)
web.py is still my go to for lightweight webapps. I won't start a big discourse on the pros and cons vs. other technologies, but I will say it is incredibly easy to setup and use.

The current github page is here: https://github.com/webpy/webpy

If you are looking to get up and running quickly, I would recommend forking this skeleton: https://github.com/jzellman/webpy-skeleton

Finally, the built in database framework is a bit simplistic. I like to pair this with Peewee (included in the webpy-skeleton).

Re:Rewriting Reddit (2005) by rdtsc on Monday October 27, 2014 @01:56PM (#8517026)
Yeah same here. It has the cleanest mapping from REST resources to Python class + method. It just made sense to me:

The router block at the top plus:

    class MyResource:

       def GET(self,...): ...

       def POST(self,...): ...

       def PUT(self,...): ...

       def DELETE(self,...): ...
Looks really nice. Haven't tried serving or rendering templates from it, so never tested that code.
Re:Rewriting Reddit (2005) by tiglionabbit on Monday October 27, 2014 @03:17PM (#8517521)
Check out Flask's MethodView
Re:Rewriting Reddit (2005) by rdtsc on Monday October 27, 2014 @06:03PM (#8518442)
Oh Cool. Hadn't seen that before. I like MethodView dispatch pattern.
Re:Rewriting Reddit (2005) by euphemize on Monday October 27, 2014 @04:28PM (#8517974)
FWIW, many other python web frameworks use the very same pattern.