Live data from Hacker News

Flask 0.7 Released (Python Web Framework)

flask.pocoo.org

21–30 of 80 posts

Re: Flask 0.7 Released (Python Web Framework)

#21
post #8

[deleted]

I think if you looked you'd see that they have indeed looked into Python 3 support and have found it technically inviable without breaking a number of things.

Python 3 was backwards incompatible to 2.6/2.7, and there are very large code-bases comprising things like Django that can't just be carted over part and parcel.

As somebody who's spent time building enterprise-class Django applications for a very slow-moving set of customers (e.g., the Federal government) I'm glad they're not pushing forward faster than the rest of the world.

Re: Flask 0.7 Released (Python Web Framework)

#22
post #17
post #12

Earlier quoted context omitted.

"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.

> assumes that all resources(templates, static files, etc.)

Reading the source, I see no evidence of this.

https://github.com/defnull/bottle/blob/master/bottle.py#L161...

Re: Flask 0.7 Released (Python Web Framework)

#23
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.

Catalyst is not light weight. You would need to look at Dancer or Mojolicious for Perl equivalents.

Re: Flask 0.7 Released (Python Web Framework)

#24
post #14

Earlier quoted context omitted.

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?

Consolidation of resources and talents. That is all I can think of.

Re: Flask 0.7 Released (Python Web Framework)

#25
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.

Catalyst is a full blown MVC web framework. For light-weight (micro) web frameworks in Perl have a look at:

* Dancer (http://perldancer.org/)

* Mojolicious::Lite (http://mojolicio.us/)

* Squatting (http://p3rl.org/Squatting)

* Web::Simple (http://p3rl.org/Web::Simple)

Re: Flask 0.7 Released (Python Web Framework)

#26
post #8

[deleted]

They are not ignoring P3. They are laying plans to move to it. Patience is a virtue. I am learning Python 3 and would love to be using Flask and even Django. It will happen. There was a 5 year plan for P3 adoption and we are only half way there.

Re: Flask 0.7 Released (Python Web Framework)

#27
post #4

Earlier quoted context omitted.

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

Catalyst is a full blown MVC web framework. For light-weight (micro) web frameworks in Perl have a look at: * Dancer ( http://perldancer.org/ ) * Mojolicious::Lite ( http://mojolicio.us/ ) * Squatting ( http://p3rl.org/Squatting ) * Web::Simple ( http://p3rl.org/Web::Simple )

Great, thanks for the suggestions

Re: Flask 0.7 Released (Python Web Framework)

#29
post #27

Earlier quoted context omitted.

Catalyst is a full blown MVC web framework. For light-weight (micro) web frameworks in Perl have a look at: * Dancer ( http://perldancer.org/ ) * Mojolicious::Lite ( http://mojolicio.us/ ) * Squatting ( http://p3rl.org/Squatting ) * Web::Simple ( http://p3rl.org/Web::Simple )

Great, thanks for the suggestions

Thats OK.

PS. Here is a presentation doing a loose comparison between Dancer & Flask called "Dancer for Python programmers" (http://www.slideshare.net/xSawyer/perl-dancer-for-python-pro...)

Re: Flask 0.7 Released (Python Web Framework)

#30

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.

For Perl developers - The debugger has been ported to PSGI/Plack - http://blog.plackperl.org/2011/05/miyagawaplack-middleware-i...
Post reply on HN