5
I studied the framework for a long time Django
and I thought the ORM
of the same was excellent.
I had the idea, at some point, to build an application with another framework called Flask
, using a framework similar to Django
.
I searched, but I couldn’t find much.
I’d like to know two things:
Is there any database framework (ORM) similar to the ORM of
Django
?It is possible to use the
Django
, without relying specifically on the entire framework being installed (install only the Django ORM package, I say)?
In that case, I prefer the
ORM
of Django +1– Wallace Maxters
@Wallacemaxters I’ve never used Sqlalchemy, but a lot of people recommended me, it seems to be superior to Django in many ways (but this is relative, especially for his previous familiarity with Django). If you only want the ORM, it might be worth taking a look at it instead. P.S. All links to this one
django-orm
on the site pypi are broken, I think this project has been discontinued... (but it is still possible to use parts of Django and ignore other)– mgibsonbr
Thank you @mgibsonbr. I see you are a Python "connoisseur" :)
– Wallace Maxters
Prefer Sqlalchemy - Django has always been very integrated - and just read a paragraph of the description of Djano-ORM published independently on the link above, to realize that it is not a job done by a large community - and yes, something more experimental being played mainly by a single developer. (see for example, that it only supports a database type)
– jsbueno
Sqlalchemy, on the other hand, is an ORM with over 10 years of road, with a vast community, and the 'bridge' - flask-Sqlalchemy package itself is practically an official part of Flask, with the attention of dozens of developers, and many and many examples in all existing Flask documentation - something more interesting to have in production.
– jsbueno