tortoise-orm VS SQLAlchemy

Compare tortoise-orm vs SQLAlchemy and see what are their differences.

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
tortoise-orm SQLAlchemy
11 134
4,715 9,767
1.8% 1.8%
9.1 9.7
5 days ago 11 days ago
Python Python
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

tortoise-orm

Posts with mentions or reviews of tortoise-orm. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-12-11.

SQLAlchemy

Posts with mentions or reviews of SQLAlchemy. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-12-11.
  • Creating an Application with Amazon RDS and MySQL in the Cloud
    3 projects | dev.to | 11 Dec 2024
    SQLAlchemy Documentation. "SQLAlchemy ORM." https://www.sqlalchemy.org/.
  • Leveraging Python for Scalable Data Pipelines
    1 project | dev.to | 10 Oct 2024
    Let’s start with a simple example of a data pipeline that reads data from a CSV file, processes it, and stores the result in a database. We’ll use Pandas for data manipulation and SQLAlchemy to interact with an SQL database.
  • Creating an arXiv DB
    7 projects | dev.to | 31 Aug 2024
    We will define our database schema using SQLAlchemy. First, we will store a subset of the information in a single table called documents. This is to test that our database configuration is correct and avoid storing nested data now. The code is fairly simple to create a SQLite3 database with SQLAlchemy:
  • Announcing the public beta for dedicated clusters
    6 projects | dev.to | 25 Jul 2024
    We've put a special focus on making sure Drizzle, Prisma, SQLAlchemy and Django ORMs work well with our platform. Common administrative and data exploration tools like DataGrip, pgAdmin and TablePlus have been put through the wringer to resolve any compatibility hiccups seen over the past few months.
  • Building a RESTful API with Flask
    4 projects | dev.to | 22 Jul 2024
    SQLAlchemy: Python SQL toolkit and ORM (Object Relational Mapper). Use it to work with databases with Python objects.
  • Track Errors in Your Python Flask Application with AppSignal
    2 projects | dev.to | 12 Jun 2024
    We'll use the Flask-SQLAlchemy package to manage the database. This package provides SQLAlchemy support to Flask projects. That includes the Python SQL toolkit and the ORM.
  • Building a Travel Agency Website with the Rapyd Payment Gateway
    3 projects | dev.to | 11 Jun 2024
    SQLite for the database
  • A single ChatGPT mistake cost us $10k
    8 projects | news.ycombinator.com | 9 Jun 2024
    I'm not familiar with the library either, but that seems to be a SQL expression executed on the database server. It's basically a copy-paste from the official documentation[0]. So no, not a lambda expression, because it's not computed in Python.

    As to the extra parentheses: I bet that's a force-of-habit thing to prevent potential issues. For example, it seems Sqlite requires them for exactly this kind of default definition[1]. It could also read to nasty bugs when the lack of parentheses in the resulting SQL could result in a different parse than expected[2]. Adding them just-to-be-safe isn't the worst thing to do.

    [0]: https://docs.sqlalchemy.org/en/13/core/metadata.html

    [1]: https://github.com/sqlalchemy/sqlalchemy/issues/4474

    [2]: https://github.com/sqlalchemy/sqlalchemy/issues/5344

  • How to scale a Django application to serve one million users?
    3 projects | dev.to | 23 May 2024
    Depending on the progress of your application, you may want to migrate to another framework faster than Django. Django’s ORM is not exactly the fastest out there, and, at the time of writing, it is not asynchronous. You might want to consider giving sqlalchemy, ponyorm a try.
  • Setting up a standalone SQLAlchemy 2.0 ORM application
    4 projects | dev.to | 20 May 2024
    SQLAlchemy is a widely used database toolkit for Python, providing a SQL abstraction layer covering most, if not all, your relational database needs. It's often used together with popular frameworks such as Flask and FastAPI, using either its Core library and/or its ORM components.

What are some alternatives?

When comparing tortoise-orm and SQLAlchemy you can also consider the following projects:

PonyORM - Pony Object Relational Mapper

Peewee - a small, expressive orm -- supports postgresql, mysql, sqlite and cockroachdb

GINO - GINO Is Not ORM - a Python asyncio ORM on SQLAlchemy core.

Orator - The Orator ORM provides a simple yet beautiful ActiveRecord implementation.

Piccolo - Piccolo (formerly Pilot) – mini game engine for games104

prisma-client-py - Prisma Client Python is an auto-generated and fully type-safe database client designed for ease of use

ormar - python async orm with fastapi in mind and pydantic validation

pyDAL - A pure Python Database Abstraction Layer

django-async-orm - Bringing Async Capabilities to django ORM

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured

Did you konow that Python is
the 2nd most popular programming language
based on number of metions?