Live data from Hacker News

Flask 0.7 Released (Python Web Framework)

flask.pocoo.org

11–20 of 80 posts

Re: Flask 0.7 Released (Python Web Framework)

#12
post #10
post #6

How does Flask compare to Bottle ( http://bottlepy.org/docs/dev/index.html )? Any advantages/disadvantages?

Flask has more features, more and better documentation, a bigger community and ecosystem as well as more developers behind it. Furthermore Bottle does magic that is frowned upon by some people.

"does magic that is frowned upon by some people."

Can you elaborate?

Re: Flask 0.7 Released (Python Web Framework)

#13
post #12
post #10

Earlier quoted context omitted.

Flask has more features, more and better documentation, a bigger community and ecosystem as well as more developers behind it. Furthermore Bottle does magic that is frowned upon by some people.

"does magic that is frowned upon by some people." Can you elaborate?

I would describe it more carefully. Bottle's advantage that it's self contained and in a single file, however bottle's design also hides away the application object from you which makes it quite hard to have more than one of them. It is possible with the stacked object thing and I think they changed it even to make it possible to do what Flask did, but when Flask started at least there was a design difference there.

By now I really would like to see them merge, but Bottle wants to stick to the design idea of just having one file which Flask will never be able to do because of the dependencies.

Re: Flask 0.7 Released (Python Web Framework)

#14
post #12

Earlier quoted context omitted.

"does magic that is frowned upon by some people." Can you elaborate?

I would describe it more carefully. Bottle's advantage that it's self contained and in a single file, however bottle's design also hides away the application object from you which makes it quite hard to have more than one of them. It is possible with the stacked object thing and I think they changed it even to make it possible to do what Flask did, but when Flask started at least there was a design difference there.…

Any reasons why they should merge if they are so different?

Re: Flask 0.7 Released (Python Web Framework)

#15

I really enjoy Flask's simplicity (relative to Django) and light-weightness. It was the first web framework I used, actually. Armin Ronacher & team make quality products.

The debugger is badass. I built a few simple sites with Flask year and it was the thing I wished most I could have in Rails.

Re: Flask 0.7 Released (Python Web Framework)

#16
post #10
post #6

How does Flask compare to Bottle ( http://bottlepy.org/docs/dev/index.html )? Any advantages/disadvantages?

Flask has more features, more and better documentation, a bigger community and ecosystem as well as more developers behind it. Furthermore Bottle does magic that is frowned upon by some people.

Then again, I also dislike some of the magic in Flask.

Re: Flask 0.7 Released (Python Web Framework)

#17
post #12
post #10

Earlier quoted context omitted.

Flask has more features, more and better documentation, a bigger community and ecosystem as well as more developers behind it. Furthermore Bottle does magic that is frowned upon by some people.

"does magic that is frowned upon by some people." Can you elaborate?

An example would be that Bottle creates an application object implicitly and assumes that all resources(templates, static files, etc.) are relative to the cwd. However the WSGI specification doesn't define what the cwd points to so you have to work around that for some servers.

If you use Flask you create the application object explicitly and pass it the name of the module, relative to which Flask looks up resources.

Re: Flask 0.7 Released (Python Web Framework)

#18
I'm always impressed by Flask - especially its documentation. In fact, this seems like a good occasion to have a poke around and build something with it.

On a slightly related note - although jinja2 is already quite compact, I'm a fan of haml and I'm always surprised by the lack of support for it in Python. Is there something I'm missing? Uncanny valley for Pythonistas?

Re: Flask 0.7 Released (Python Web Framework)

#19
post #10

Earlier quoted context omitted.

Flask has more features, more and better documentation, a bigger community and ecosystem as well as more developers behind it. Furthermore Bottle does magic that is frowned upon by some people.

Then again, I also dislike some of the magic in Flask.

For what reason?

Re: Flask 0.7 Released (Python Web Framework)

#20
post #4

I really enjoy Flask's simplicity (relative to Django) and light-weightness. It was the first web framework I used, actually. Armin Ronacher & team make quality products.

I've been looking at light-weight scripting-language frameworks, any experience with Catalyst? I'm a fan of Perl.

No, sorry.
Post reply on HN