Skip to content

Rust-backed ORM for Pydantic applications

Ormdantic

Define tables with Pydantic v2 models. Let Rust handle SQL compilation, native execution, relationship planning, and hydration.

Install Ormdantic View Examples

Test Package version Sponsor

Ormdantic is a library for interacting with asynchronous SQL databases from Python code, with Python objects. It is designed to be intuitive, explicit, and robust.

Ormdantic is powered by Rust SQL compilation and native Rust database execution, uses Pydantic models, and is built for applications that want a small Python facade over a native runtime.

Pydantic-first tables

Use Pydantic models for validation, serialization, and ORM table declarations.

Native Rust runtime

Rust owns SQL compilation, bind ordering, native execution, and row hydration.

Async-safe loading

Relationship loading is explicit, predictable, and designed for async applications.

Supported Runtimes

SQLite, PostgreSQL, MySQL, MariaDB, SQL Server, and Oracle are compiled into the default Python extension.

License

This project is licensed under the terms of the MIT license.