5 ms·
Armin's Flask was probably best experience I've ever had with a piece of software. Clean, modular, pragmatic and very well documented. I only stopped using beca
by swah 11y ago
Armin's Flask was probably best experience I've ever had with a piece of software. Clean, modular, pragmatic and very well documented. I only stopped using because "websockets, Go, SPA", though I never really finished a side project with those yet.
I can't think of a single WTF moment I had with it. Several "OMG this guy thought about this too" moments.
- Svenstaro 11y agoI'm using flask for my SPA with websockets just fine, though.
- mrfusion 11y agoSorry, what's SPA? And how are you using websockets with flask?
- ddorian43 11y agosingle-page-app you can do websockets with uwsgi for example
- Svenstaro 11y agoSPA: Single Page Application https://github.com/zeekay/flask-uwsgi-websocket https://github.com/zeekay/flask-uwsgi-websocket
- krat0sprakhar 11y agoKenneth Reitz has a popular extension for websockets with Flask - https://github.com/kennethreitz/flask-sockets https://github.com/kennethreitz/flask-sockets
- thearn4 11y agoFlask is an awesome framework. I've used a little bit of Tornado and Django for side projects, but found how overkill those were (at least for my small use cases) as soon as I got into Flask.
- simi_ 11y agoSince I'm in the same boat as you, what about Falcon? Are the extra performance and customisability worth switching? http://falconframework.org/ http://falconframework.org/ edit: Thank you for your reply - by the way yes, I am indeed only building a REST API.
- EpicDavi 11y agoI used Falcon for a relatively large project and enjoyed using it. It is noticeably faster than Flask and I can write code faster as well. It is very much still growing and features are being added. They call Flask "Batteries not included" but Falcon takes that to another level. There are also not very many extensions in comparison to Flask. If you are writing an API exclusively, I would choose Falcon. However, if you have any HTML/CSS/JS, Falcon is probably not suited for the project. EDIT: Both are very good.
- WaxProlix 11y agoFor just simple API stuff, CherryPy is another good option.
- deleted 11y ago[deleted]
- pekk 11y agoFlask made a number of really questionable decisions that are not visible to someone who just followed a tutorial to make a simple app. "g" is a horrible thing that doesn't exist in other frameworks for a reason. If you started out parodying something else you didn't like, and ended up completely emulating its interface, it means that you were either wrong earlier or you were wrong later. Maybe he will do better things in Rust, but Flask has been heavily overrated since it came out.
- lelandbatey 11y agoI've built a number of more complex applications via Flask, and I'd love for you to elaborate more on some of the deficiencies of Flask, or provide links. I ask not because I want to be snarky, but because I don't have the breadth of experience to identify any of the deficiencies in the Flask design. I'm curious to learn more.
- Semiapies 11y agoIt helps that it's essentially glue for excellent libraries he worked on.
- nichochar 11y agoI agree, Flask was the #1 thing that inspired me to write better software. It is beautiful