Hacker News new | ask | show | jobs
by dorfsmay 4538 days ago
With bottle, you don't need the ProfileSchema nor the ProfileController, hello world is literally 5 lines.

I know that everything is a tradeoff, bottle.py has A LOT of limitation, but to me it is the lean'est python framework. Heavy framework (WAY more features) would be django and pyramid, and midle of the road cherrypy. I'm not sure where Pecan fits in that picture.

1 comments

Pecan is definitely not as light weight as flask. Creating a simple hello world requires multiple files and multiple classes. Flask is super light weight in that regard. Which is why I use flask for quick hacking on personal projects.

Pecan on the other hand has a lot of great features built in, such as ORM, built in templates, etc. Pecan is a popular choice over flask for large scale projects.

ORM and templates:

I personally dislike framework forcing their ORM and templates engines, I prefer when they let me pick the ones I want. Trying to use Django was extremely weird for that reason. bottle does this kind of integration really well.

Can Pecan do https (my biggest issue with most "lean" framework)?

How much lighter / simpler is it compared to cherrypy then?