T
T
Timur Tuchkovenko2013-11-07 09:48:10
Python
Timur Tuchkovenko, 2013-11-07 09:48:10

Choosing a framework for Python3?

I'm an old Perlovist, I decided to crawl over to Python, I immediately started learning from the third version (there is no point in clinging to legacy, which will not be in 3-5 years).

in fact, scripts are written at the very least, now I am mastering the object model and in general I try to write clean and transparent code (I don’t know how it turns out, it sucks, I guess).

one of the tasks is to choose a web framework to provide an API to a third-party program (I think I use REST). Which is best suited for the chosen task, Flask or Django?

thanks in advance for your reply :)

Answer the question

In order to leave comments, you need to log in

4 answer(s)
Z
Zerstoren, 2013-11-07
@eill

Take Flask or Tornado, I tried them and for the implementation of the API they are somehow better suited than Django. Django is good for complex sites.
I use Tornado browser game server with websocket transfer. The tornado never added any problems.

D
dikkini, 2013-11-07
@dikkini

Depending on the task. Flask is lightweight and I recommend pyramid instead of django which is more complicated than django, but in my opinion it is more attractive than stuffed django

Q
QZip, 2013-11-08
@QZip

Since the last release, Django officially supports the third python.
одной из задач стоит выбор веб-фреймворка для предоставления API сторонней программе (использовать думаю REST). Что лучше всего подойдёт для выбранной задачи, Flask или Django?
Django has batteries for such things. You can look towards tastypie or django-rest-framework. It is necessary to clarify separately about the compatibility of a particular battery with a third python.

S
stalkerg, 2013-11-09
@stalkerg

Tornado - if you need an asynchronous approach (it can really break your head), without asynchronous it makes little sense.
Pylons or Pyramid - for everything else (heavier and non-asynchronous applications).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question