4 ms·
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 eas
by mox1 12y ago
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 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 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).
- rdtsc 12y agoYeah 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.
- tiglionabbit 12y agoCheck out Flask's MethodView
- rdtsc 12y agoOh Cool. Hadn't seen that before. I like MethodView dispatch pattern.
- euphemize 12y agoFWIW, many other python web frameworks use the very same pattern.