A
A
Avrong2015-08-07 00:03:27
Flask
Avrong, 2015-08-07 00:03:27

Which Python version to use for Flask in 2015?

Hello to all Flask developers. Today is the middle of 2015, and the official Flask documentation still recommends using Python 2 in your projects. I have been using Flask for half a year now and all this time I have been using Python 2, although before that I was actively studying the third version. I would like to know if many of the Flask libraries today do not work correctly under Python 3. A PyPi search turned up that all the libraries I need are supported by version 3, but I would like to ask you about the work on the latest version of Python of these libraries: Flask- WTF, SQLAlchemy, Flask-SQLAlchemy, SQLAlchemy-Migrate, Flask-Login, Flask-Mail. Also, if it's not difficult, write which popular libraries for Flask today do not support Python 3. Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2015-08-07
@Avrong

Flask, as you know, version 0.1 is already two years old, and there will be two more years in it, if you believe them "but there is no need to update"
But its modules are updated, the names of methods sometimes change (which is noticeable even on habrahabr.ru/post/193242 , well, and the books of 2014), but in general the course is taken on Python 3
The course on Python 3, generally speaking, is taken everywhere, but it goes slowly: all sorts of pycurl that have not been updated since 2008 were updated in 2013 and are now periodically re-released, Numpy, Scipy , lxml may not be 3.4, but 3.2 is supported, etc.
Although some time-consuming libraries, the same Twisted/Gevent are still in 2.7, well, let them sit, there is asyncio, which is generally included in the main library in 3.4 (and only under the 3rd Python is), there is, for example, suchhttps://github.com/mrdon/flask/ etc.
Therefore, I recommend tuning in to the 3rd
Or try something like PyPy (for version 2.7, if you don’t switch yet), it’s dumb to put it on production, to be honest, but for your case it may be suitable

P
p2mbot, 2015-08-10
@p2mbot

I work with Python3, Flask, Flask-SQLAlchemy. No problem.
But I always want to find some other minimalistic synchronous web framework.
If you look at the activity of the commits on the github, then the sadness is https://github.com/mitsuhiko/flask/pulse

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question