Since I'm in the same boat as you, what about Falcon? Are the extra performance and customisability worth switching?
edit: Thank you for your reply - by the way yes, I am indeed only building a REST API.
I 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.
For just simple API stuff, CherryPy is another good option.
Flask 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.
I'm using flask for my SPA with websockets just fine, though.
Sorry, what's SPA? And how are you using websockets with flask?
Re:Rust for Python Programmers
by krat0sprakhar on Wednesday May 27, 2015 @08:42AM
(#9610910)
Kenneth Reitz has a popular extension for websockets with Flask - https://github.com/kennethreitz/flask-sockets
SPA: Single Page Application
single-page-app
you can do websockets with uwsgi for example
It helps that it's essentially glue for excellent libraries he worked on.
Flask 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.
Re:Rust for Python Programmers
by lelandbatey on Wednesday May 27, 2015 @05:40PM
(#9614562)
I'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.
I can't think of a single WTF moment I had with it. Several "OMG this guy thought about this too" moments.