Difference between Flask and Webapp2 (GAE)

I am still collecting information, but it seems that I cannot understand what the difference is between the two structures.

I am currently using webapp2 with jinja2 and wtforms. It goes out of the box in GAE and works great.

If I compare flask and webapp2, I can only see that the flask has jinja and wtforms that are already integrated, so there are not many.

If I compare two documents, it seems that both structures have a lot in common.

http://webapp-improved.appspot.com/

http://flask.pocoo.org/docs/

You have some problems starting with a jar to work locally on my windows machine.

At least the jar document seems very enjoyable. It is really well written and very understandable.

I was already searching the Internet and I could not find any information about the differences.

Flask vs webapp2 for Google App Engine

So what are the differences?

+8
python google-app-engine flask webapp2
source share
2 answers

The checkbox abstracts a little more than webapp2 does. It is (optionally) function-based, so you don't need to create handler classes for everything. The decorator syntax used to process the route is a bit more concise. In general, they are equally powerful and all that you can do in one, that you can do in another. If you already know webapp2, there is no reason why I can start using Flask.

+7
source share

I am all on webapp2, hosting my applications for many years on GAE. However, if you are planning long-term plans, from GAE to the Google Compute Engine or Container Engine or to AWS EC2, you can consider Flask. The idea of ​​webapp2 provides some support outside of GAA , this is even more specific to GAE, at least that's my feeling.

I myself believe that you need to move away from GAE, so Django and Flask are on my radar for evaluation. From what I'm compiling, Flask is lightweight (like webapp2) and both use Jinja2 templates, so I'll start with Flask.

+2
source share

All Articles