News for hackers. Stuff that matters.
Re:Rust for Python Programmers by swah on Wednesday May 27, 2015 @07:13AM (#9610528)
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.

Re:Rust for Python Programmers by simi_ on Wednesday May 27, 2015 @09:18AM (#9611087)
Since I'm in the same boat as you, what about Falcon? Are the extra performance and customisability worth switching?

http://falconframework.org/

edit: Thank you for your reply - by the way yes, I am indeed only building a REST API.

Re:Rust for Python Programmers by EpicDavi on Wednesday May 27, 2015 @10:00AM (#9611353)
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.

Re:Rust for Python Programmers by WaxProlix on Wednesday May 27, 2015 @03:32PM (#9613746)
For just simple API stuff, CherryPy is another good option.
Re:Rust for Python Programmers by thearn4 on Wednesday May 27, 2015 @07:23AM (#9610560)
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.
Re:Rust for Python Programmers by Svenstaro on Wednesday May 27, 2015 @08:05AM (#9610734)
I'm using flask for my SPA with websockets just fine, though.
Re:Rust for Python Programmers by mrfusion on Wednesday May 27, 2015 @08:14AM (#9610774)
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
Re:Rust for Python Programmers by Svenstaro on Wednesday May 27, 2015 @08:28AM (#9610840)
Re:Rust for Python Programmers by ddorian43 on Wednesday May 27, 2015 @08:17AM (#9610789)
single-page-app

you can do websockets with uwsgi for example

Re:Rust for Python Programmers by Semiapies on Wednesday May 27, 2015 @05:48PM (#9614614)
It helps that it's essentially glue for excellent libraries he worked on.
Re:Rust for Python Programmers by pekk on Wednesday May 27, 2015 @05:03PM (#9614326)
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.

Re:Rust for Python Programmers by nichochar on Wednesday May 27, 2015 @07:22PM (#9615105)
I agree, Flask was the #1 thing that inspired me to write better software. It is beautiful