News for hackers. Stuff that matters.
Re:Show HN: I built a Python web framework from scratch by phas0ruk on Saturday September 09, 2023 @04:59PM (#37450226)
Flask is decent. Can’t we use that?
Re:Show HN: I built a Python web framework from scratch by blooalien on Saturday September 09, 2023 @05:11PM (#37450329)
I agree. Flask is quite nice, as are some of the other things based off it, like FastAPI, and some of the Flask-inspired async frameworks, and the Jinja template engine that Flask uses. All good stuff.
Re:Show HN: I built a Python web framework from scratch by nomdep on Saturday September 09, 2023 @06:00PM (#37450722)
You can use whatever you want, can't you?

However, my opinion is that is a PITA that every Flask project has a different structure, unlike a "batteries included" framework like Django, Rails, etc.

Re:Show HN: I built a Python web framework from scratch by emidln on Sunday September 10, 2023 @04:18AM (#37453898)
Most nontrivial Django websites also have varying structures. At least they did a decade ago when I was working as a consultant specializing in Django. About as much commonality as Flask. Did Django ever figure out a less verbose way of declaring REST APIs with arbitrary serialization?
Re:Show HN: I built a Python web framework from scratch by mhd on Saturday September 09, 2023 @06:05PM (#37450754)
Whatever happened to web2py? I remember that being brought up a lot in these discussions…
Re:Show HN: I built a Python web framework from scratch by guggle on Saturday September 09, 2023 @09:56PM (#37452199)
Stuck for a while in python 2.x world with its "always backward compatible" pledge... then it lost attention I guess. Also, questionable technical choices. Now py 3.5+ compatible, but no compelling reason to use it.
Re:Show HN: I built a Python web framework from scratch by glimmung on Monday September 11, 2023 @05:35AM (#37464834)
It's in maintenance mode, and still has a role.

However, the focus has moved to py4web [1] which has many of web2py's strengths (including the DAL), but with a more orthodox architecture at the cost of a little more complexity and a slightly steeper learning curve.

[1] https://py4web.com/

Re:Show HN: I built a Python web framework from scratch by guggle on Saturday September 09, 2023 @09:46PM (#37452129)
Bottle was decent before Flask. Couldn't we use that instead ?
Re:Show HN: I built a Python web framework from scratch by nilslindemann on Sunday September 10, 2023 @10:59AM (#37456425)
We could, and I did. Though, last update was last year, and v0.13 is unreleased for years.
Re:Show HN: I built a Python web framework from scratch by stock_toaster on Sunday September 10, 2023 @04:31AM (#37453980)
If I had to write a python webapp today, I’d probably try out robyn instead of flask.

https://github.com/sparckles/robyn