Answer the question
In order to leave comments, you need to log in
What frameworks (maybe even one is enough) to choose for a Python Web service that will have REST and MongoDB?
For a deeper acquaintance with python, I want to make my own small project in which the data will be in mongo, and the interaction with the client side will be by REST.
Just don't talk me out of mongi and the like. This is a personal project and the technologies are chosen for reference, even if it is not the best choice.
The essence of the project is an aggregator of one of the services. Those. There are companies that provide the same service. But prices and some conditions are different. There will be, as it were, a generalized calculator for the cost of the service. The client enters parameters (initial data). The request goes to the server. The server gives how much this service will cost from a particular provider.
What I want on the server (the client part is not interested now):
- python
- REST API for interacting with the client
- MongoDB for storing all data
Well, actually the question itself: what web frameworks for python would you recommend to use?
I would like to get such a stack so that I don’t have to cross a hedgehog with a snake :)
Answer the question
In order to leave comments, you need to log in
I recommend Django as a framework that has everything and more. You can say the industry standard. I'm using pymongo, but it might be worth looking into some kind of ODM.
I recommend Tornado as simple asynchronous and cool. If you want to indulge in asynchrony. Although it is less popular and there are much fewer libraries.
You can also look at Flask, it is simple and minimalistic, it was interesting, but in the end I abandoned it in favor of Dzhangi, because. all the time had to write bicycles.
Monga is a cool thing, but relational databases are quite convenient and there are more tools for them. I often use it together.
Definitely not django - You don't need to bring along an ORM, a template engine, and so on. Look towards lightweight microframeworks. Personally, I would advise falcon - it wins in performance quite strongly, it is sharpened for rest.
Tornado + motor
Just do everything consciously and watch for blocking functions so that they don’t exist.
A very compact API will turn out
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question