Python ORM similar to Django

Asked

Viewed 181 times

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)?

1 answer

6


Is there any database framework (ORM) similar to Django’s ORM?

Yes, flame Sqlalchemy.

He has a version for Flask.

It is possible to use the Django framework, without relying specifically on the entire framework being installed (install only the Django ORM package, I say)?

Apparently, yes.

  • In that case, I prefer the ORM of Django +1

  • 3

    @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)

  • Thank you @mgibsonbr. I see you are a Python "connoisseur" :)

  • 1

    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)

  • 1

    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.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.