ormar – asynchronous object-relational mapper

ormar is an asynchronous object-relational mapper for Python, designed with FastAPI and Pydantic integration in mind. It lets developers use a single model for database mapping, data validation, and FastAPI request and response schemas.

The ORM uses SQLAlchemy for query construction and asynchronous database access. It supports PostgreSQL, MySQL, and SQLite, together with relationships, transactions, signals, migrations, and a comprehensive QuerySet API.

This is free and open source software.

Key Features

  • Asynchronous database access suitable for FastAPI, Starlette, and other async frameworks.
  • Uses Pydantic models for data validation and serialization.
  • Uses SQLAlchemy for query building and cross-database support.
  • Supports PostgreSQL, MySQL, and SQLite databases.
  • Provides asynchronous create, read, update, and delete operations.
  • Supports foreign key and many-to-many relationships.
  • Offers filtering, sorting, joins, subqueries, pagination, and aggregations.
  • Returns model instances or raw database data.
  • Supports model inheritance and Pydantic-only fields.
  • Provides optional field encryption.
  • Includes database transactions and model lifecycle signals.
  • Works with Alembic for database migrations.
  • Supports use as FastAPI request and response models.
  • Provides type annotations and mypy support.

Website: github.com/ormar-orm/ormar
Support:
Developer: Radosław Drążkiewicz
License: MIT License

ormar is written in Python. Learn Python with our recommended free books and free tutorials.


Related Software

Python Object-Relational Mapping Software
DjangoHigh-level web application framework that has a powerful ORM
SQLAlchemyPython SQL Toolkit and Object Relational Mapper
PeeweeSimple, small and expressive Object Relational Mapper. It has few concepts
SQLModelCombines database models with type-safe data validation
TortoiseEasy-to-use asyncio ORM inspired by Django
PonyBilled as the smartest Python ORM
PiccoloAsync-first database toolkit with migrations and a powerful query API
SQLObjectForms a part of many applications including TurboGears
ormarBuild expressive async database models with minimal boilerplate
EdgyModern async database layer focused on simplicity and flexibility
SaffierLightweight async data modelling with support for multiple databases
StormDesigned to work with thin relational databases and big systems

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted