Live data from Hacker News

New Werkzeug and Flask Releases

lucumr.pocoo.org

31–40 of 59 posts

Re: New Werkzeug and Flask Releases

#31
post #24

I read somewhere that Flask was born as an Aprils first joke. So I ask. How safe is it to use in a real project? Is it a serious project today? Would you recommend Flask to someone who has never done any server side programming?

Twilio uses it to run their API. So, that must be very reliable.

"Flask-RESTful was initially developed as an internal project at Twilio, built to power their public and internal APIs" http://flask-restful.readthedocs.org/en/latest/

Re: New Werkzeug and Flask Releases

#34

http://werkzeug.pocoo.org/download 404

This was changed to https://pypi.python.org/pypi/Werkzeug See https://github.com/mitsuhiko/werkzeug/commit/6e74b5be39d2409...

The "Download page" link in http://werkzeug.pocoo.org/docs/installation/ needs to be fixed then!

(From the tarball release Download the most recent tarball from the download page.)

Re: New Werkzeug and Flask Releases

#35
post #6

Flask is about the most beautiful Python code you can write. Check out any other Python framework and they may have a decent api, but on the inside it is messy and confusing. Reading Flask source code on the other hand is a joy. There's no crazy stuff and few convoluted pieces + lots of comments so it is really easy to hack something if you must. Any Python coder who wants to improve their game definitely should stud…

Check out any other Python framework and they may have a decent api, but on the inside it is messy and confusing.

This is a really disingenuous generalization. If it's not Flask, it's messy and confusing? Telling every framework developer who's not the author of this one library that their code is crap not only isn't a great way to be taken seriously, it's wrong and just kind of mean.

Re: New Werkzeug and Flask Releases

#36
post #24

I read somewhere that Flask was born as an Aprils first joke. So I ask. How safe is it to use in a real project? Is it a serious project today? Would you recommend Flask to someone who has never done any server side programming?

Twilio uses it to run their API. So, that must be very reliable. "Flask-RESTful was initially developed as an internal project at Twilio, built to power their public and internal APIs" http://flask-restful.readthedocs.org/en/latest/

While I'm not disagreeing on the quality of Flask, "x uses y, so y must be stable" is the same kind of argument as "Facebook runs on PHP, so PHP must be blazing fast." Yeah, there are large web companies using all sorts of tech, but what else they're using alongside it and how they've adapted it to their needs make this sort of commentary questionable at best.

It's definitely nice to see other responses here that are from people who are, first hand, using Flask in high-traffic live deployments. I'd just be careful about drawing conclusions based on who has it somewhere in their stack without any context.

Re: New Werkzeug and Flask Releases

#37
post #24

I read somewhere that Flask was born as an Aprils first joke. So I ask. How safe is it to use in a real project? Is it a serious project today? Would you recommend Flask to someone who has never done any server side programming?

Twilio uses it to run their API. So, that must be very reliable. "Flask-RESTful was initially developed as an internal project at Twilio, built to power their public and internal APIs" http://flask-restful.readthedocs.org/en/latest/

We use a bunch of tools up and down our stack, but the nginx+uwsgi+Flask part of our stack has been very reliable.

Every request to new-ish parts of the Twilio API touches Flask, and it's performed like a champ.

Re: New Werkzeug and Flask Releases

#38
post #26
post #24

I read somewhere that Flask was born as an Aprils first joke. So I ask. How safe is it to use in a real project? Is it a serious project today? Would you recommend Flask to someone who has never done any server side programming?

Regardless of Flask's humble beginnings, it is indeed a serious project, very stable, and quite awesome. And yes, I would recommend it for your use, assuming you want to learn Python as a whole. Flask is easy enough that you can start building an app right away, but at the same time, it leaves out all the extra 'magic' that ship with things like Django, so you'll be learning a lot more Python as you add onto your app…

I'm curious about what you think is "magic" in Django? It does have a lot more included than Flask/Werkzeug/Jinja2 but it did start in the era before Pip/VirtualEnv existed so a lot more had to be included.

After numerous purges (the magic-removal-branch being the biggest) and deprecations over the years since 1.0, Django is IMO pretty magic-free. If you have suggestions of what isn't Pythonic enough, I think the core team would appreciate a ticket on Trac:

  https://code.djangoproject.com/newticket

Re: New Werkzeug and Flask Releases

#39
post #20

Earlier quoted context omitted.

It's in a single file which happens to be a little under 3500 lines long ...

Right, he's implying that the implementation is not as complete, or is incorrect because the problem space is more complex than that.

He is implying with not any evidence, aka FUD.

Re: New Werkzeug and Flask Releases

#40

Earlier quoted context omitted.

Twilio uses it to run their API. So, that must be very reliable. "Flask-RESTful was initially developed as an internal project at Twilio, built to power their public and internal APIs" http://flask-restful.readthedocs.org/en/latest/

While I'm not disagreeing on the quality of Flask, "x uses y, so y must be stable" is the same kind of argument as "Facebook runs on PHP, so PHP must be blazing fast." Yeah, there are large web companies using all sorts of tech, but what else they're using alongside it and how they've adapted it to their needs make this sort of commentary questionable at best. It's definitely nice to see other responses here that are…

Fair enough in general, but I don't think my conclusion of "Twilio's API runs on Flask => Flask is very reliable" is too far-fetched in the context of Twilio, whose whole business is their API.

To be fair to your skepticism, I have probably followed Twilio more than you've had. I seem to remember that they switched to Flask, so I don't think it was technical debt that they had to work around later on. (like it might have been the case with Facebook and PHP)

Let's say that "Twilio uses Flask for their API" answers the question "can it be used in production?" (or "is it a serious project today?"). "Should you use it in production?" is where context matters more.

Post reply on HN