{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/16"},{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/9"},{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/19"},{"label":"Internet","url":"https://skillfed.io/packages/category/internet/5"},{"label":"Database","url":"https://skillfed.io/packages/category/database/4"},{"label":"Front-Ends","url":"https://skillfed.io/packages/category/database-front-ends/2"},{"label":"Object Brokering","url":"https://skillfed.io/packages/category/software-development-object-brokering"}],"enrichment":{"capability":"ODMantic is an async-first Object Document Mapper for MongoDB that lets you define database models using Python type hints and Pydantic validation, then query and persist them with a functional API.","skillfed_tags":["mongodb","async-first","type-safe"],"use_cases":["Build FastAPI or Starlette applications with async MongoDB persistence using type-hinted models.","Define MongoDB schemas with Pydantic validation to catch invalid data before it reaches the database.","Query MongoDB collections using Python operators instead of MongoDB query syntax.","Migrate from synchronous ORMs to async-first code without rewriting model definitions.","Generate JSON schemas and API documentation automatically from your ODMantic models."],"what_it_does":"ODMantic bridges Python type hints and MongoDB by letting you define models as Pydantic classes, then use those classes to query, insert, update, and delete documents with full type safety and validation. It wraps motor (the async MongoDB driver) and pymongo, supporting both async/await patterns (ideal for ASGI frameworks like FastAPI) and synchronous code.\n\nYou define a model by subclassing Model and annotating fields with Python types; ODMantic handles collection naming, field validation via Pydantic, and automatic _id generation. Queries use Python comparison operators (e.g., `Publisher.founded <= 2000`) rather than MongoDB query syntax, and the engine provides methods like `find()`, `find_one()`, `save()`, and `save_all()` to perform database operations. Built-in JSON serialization and schema generation are included.","worth_installing":"Yes. ODMantic is actively maintained, has low install friction, carries no known vulnerabilities, and solves a real problem for Python developers using MongoDB with async frameworks. The ISC license is permissive. Install it if you need an async MongoDB ODM with strong type safety and Pydantic integration."},"id":"odmantic","links":{"html":"https://skillfed.io/packages/odmantic","md":"https://skillfed.io/packages/odmantic.md","pypi":"https://pypi.org/project/odmantic/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-01-24","license_spdx":null,"license_treatment":"permissive","name":"odmantic","python_support":"supports_current","summary":"ODMantic, an AsyncIO MongoDB Object Document Mapper for Python using type hints "},"popularity":{"monthly_downloads":111772,"position":12399,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.1.0"}
