N
N
NibiruanChild2018-08-17 14:53:30
Python
NibiruanChild, 2018-08-17 14:53:30

Which Python framework to choose for linking with Vue?

From time to time I make small web applications for myself. I'm not a pro, this is a hobby, so the topic of making money on programming is not interesting for my uncle. I used to do it with PHP + Laravel. Yes, the framework is great for small projects, but the launch is fast, and I need this more than quality and speed.
Now I’m developing in Python and Vue (that’s how it should be!) And I’m looking for a convenient, simple and functional framework (yes, I’m one of those shit coders who, without really learning the language, immediately climb into frameworks, etc., but I don’t climb into the profession, I’m for myself) . I tried Django, but it didn’t work, it’s too complicated where it’s not necessary, for example, it’s quite complicated to start, but it doesn’t know how to do many seemingly simple things after Laravel.
I'm looking at flask, but can you dissuade me right away and offer alternatives? Preferably with more or less good documentation and community.
Since I want to do the front on Vue, I need an API and ORM from the framework basically.
Disclaimer. REST API theme . Which Python framework to choose for the backend? What do you use? was reading. But firstly, time has passed, secondly, slightly different requirements, thirdly, there are not so many answers, a few extra opinions are not superfluous.

Answer the question

In order to leave comments, you need to log in

8 answer(s)
V
Vladislav Kadun, 2018-08-17
@ZXZs

Why did you decide to score on Django? MVC is a very convenient architecture for developing and separating the back from the front, and the framework has divided everything into modules for you. And what can Django "not be able to do"? :) Answer, I even became interested.
You can choose between Flask and Bottle. Both work on Werkzeug, on both you need to do everything yourself with pens, through force and through pain (but Django has already done everything for you).
There is also CherryPy, but somehow I did not use it. The demo on the site looks nice, clean, but I don’t know what the functionality is.
In such giants as Tornado you should not climb at all. This is for crazy projects/developers.
VERDICT: Django is a theme, don't trust anyone, not even your first impression :)

D
Denis Melnikov, 2018-08-17
@Mi11er

If you didn’t have enough functionality in django, then where is flask ... it’s generally empty =)
Django is perfect, and a couple of evenings is enough to figure it out.

G
gpm7315, 2018-08-21
@gpm7315

If the result and the development process are important, then the flask. If shmyak-shmyak and ready, then dzhanga. Flask is handy in simple applications and easily extends to complex ones. Junga components lag behind those of the Flask. Template engine and ORM in the first place. Flask is explicit and transparent, i.e. python style. Janga gained popularity with the speed of development, as the cmsku installed, configured and ready. Unlike Flask, Junga is a framework in every sense of the word, which is convenient for employers - change developers like gloves and don't know any problems. Flask has a flexible architecture, which gives freedom and opportunities to the developer, and therefore it is more difficult to put it on the pipeline.

R
Roman Kitaev, 2018-08-17
@deliro

then the framework needs an API and an ORM

Django + Django REST framework
Don't you want django:
falcon
apistar
flask

L
Leonid, 2018-08-17
@stilet69

You don't need Django, but Django REST framework.
I'm not a pro either, but Django REST is very easy

A
antonksa, 2018-08-18
@antonksa

yes, I'm one of those shitty coders who, without having really studied the language, immediately climb into frameworks, etc.

Are there other options? Or should govnocoders write their own frameworks right away? Using a good framework is the only way to write something non-educational (and educational) in a new language.
Come on. python manage.py runserver which could be easier, and it works out of the box even with the default config. And Django can do everything that is necessary for a web framework, and perhaps even too much in places. Specify, if it’s not difficult for you, what kind of unusual Laravel can do there. Just take into account at once a couple of tens of thousands of batteries that are written for Dzhangi.
I have a lot of experience in developing APIs in python, if you are really a beginner pythonist, then apart from Django + Django Rest Framework there are no other options for you, you can write a service from scratch on this bundle in just hours or days. Everything else will require learning.
If you want to get really confused, take Python3.6 aiohttp + aiopg + sqlalchemy + aiorestframework.

S
Sergey Nizhny Novgorod, 2018-08-18
@Terras

The easiest way to use Python is to use Django + Django REST framework. They are really very simple if you do something typical.

B
beduin01, 2018-08-18
@beduin01

I've heard a lot of very good things about https://github.com/channelcat/sanic

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question