{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/10"},{"label":"Database","url":"https://skillfed.io/packages/category/database/2"}],"enrichment":{"capability":"Tortoise ORM is an async-native Object-Relational Mapper for Python that lets you define and query databases using high-level object-oriented code instead of raw SQL, with support for SQLite, MySQL, PostgreSQL, Microsoft SQL Server, and Oracle.","skillfed_tags":["async-first","migrations","multi-database"],"use_cases":["Building async web APIs where you need to query databases without blocking the event loop.","Defining and managing relational schemas with version-controlled migrations in production applications.","Reducing SQL boilerplate in projects that work with multiple database backends (PostgreSQL, MySQL, SQLite, Oracle).","Implementing complex queries involving foreign keys, many-to-many relationships, and nested filtering across related models.","Preventing SQL injection vulnerabilities by using parameterized queries through an ORM abstraction layer."],"what_it_does":"Tortoise ORM is an async-native Object-Relational Mapper inspired by Django, designed to let developers work with relational databases using Python objects instead of raw SQL. It abstracts database interactions across SQLite, MySQL, PostgreSQL, Microsoft SQL Server, and Oracle, reducing boilerplate, preventing SQL injection through parameterized queries, and centralizing schema definitions. The package is built on asyncio and integrates with async frameworks.\n\nYou define models by inheriting from tortoise.models.Model, then initialize Tortoise to establish relationships and connect to your database. Once initialized, you can create, filter, and query records using async methods like .create(), .filter(), and .prefetch_related(). The package includes a built-in migration CLI for version-controlled schema changes, and supports complex operations like many-to-many relationships, nested prefetching, and filtering across related models.","worth_installing":"Yes. Tortoise ORM is actively maintained, has low install friction, carries no known vulnerabilities, and is licensed permissively under Apache-2.0. It is a solid choice for async Python projects that need to work with relational databases and want a Django-like API. Install it if you are building async applications and prefer ORM abstraction over raw SQL; skip it if you need synchronous database access or prefer a different query style."},"id":"tortoise-orm","links":{"html":"https://skillfed.io/packages/tortoise-orm","md":"https://skillfed.io/packages/tortoise-orm.md","pypi":"https://pypi.org/project/tortoise-orm/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-10","license_spdx":null,"license_treatment":"permissive","name":"tortoise-orm","python_support":"supports_current","summary":"Easy async ORM for python, built with relations in mind"},"popularity":{"monthly_downloads":636466,"position":5626,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.1.8"}
