News for hackers. Stuff that matters.
Re:Designing a Pure Python Web Framework by DandyDev on Friday March 22, 2024 @04:19PM (#39794394)
This looks like a really neat project! The examples certainly feel less “script-like” than streamlit.

One thing I find disappointing though, is that this framework is built on top of FastAPI. I feel it’s a bad idea to build on top of what’s basically a one-man project. No matter how popular that project is.

Re:Designing a Pure Python Web Framework by picklelo on Friday March 22, 2024 @04:25PM (#39794452)
Thanks! we found script-like frameworks like Streamlit are nice for small apps, but hard to reason about for larger apps. We went with a declarative approach more similar to React.

FastAPI has been working well for us, but we're not strongly coupled to it - in the future it would be easy to swap it out if needed.

Re:Designing a Pure Python Web Framework by slrainka on Friday March 22, 2024 @05:36PM (#39795111)
Stay with FastAPI at least for now. Devs love it.
Re:Designing a Pure Python Web Framework by devjab on Friday March 22, 2024 @06:24PM (#39795491)
I wouldn’t worry about using FastAPI. Not that your point is wrong but the code base isn’t exactly large and it’s entirely open source. If the project goes off road or something you can always continue on your own fork.

I’m not sure why you wouldn’t use FastAPI for this. It’s popular because it’s really good.

Re:Designing a Pure Python Web Framework by robertlagrant on Friday March 22, 2024 @04:22PM (#39794427)
Yeah - I've said this elsewhere, but I slightly prefer Litestar over FastAPI for this reason.
Re:Designing a Pure Python Web Framework by DandyDev on Friday March 22, 2024 @04:29PM (#39794502)
I was thinking about Litestar as well. Would be a good fit for this project. I hope the maintainers consider it.