art049/odmantic
Sync and Async ODM (Object Document Mapper) for MongoDB based on python type hints observed · 2026-08-28
Health v2 · maintenance only
81/100
- Activity 83
- Release rhythm 67
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 2
- age_days: 2315
- days_rel: 221
- days_push: 106
- n_releases_24m: 2
Adoption not part of the score
1175 stars · 98 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
ODMantic is a sync and async Object Document Mapper (ODM) for MongoDB built on Python type hints and Pydantic for model definition and validation. It provides a fully typed, functional API for database operations with built-in JSON serialization and JSON schema generation.
Use cases
- map python classes to mongodb documents with type hints
- use mongodb with fastapi async endpoints
- validate and serialize mongodb documents with pydantic
- query mongodb using python comparison operators
- build a typed data layer for a python backend
- switch between sync and async mongodb access in python
When to choose
- you use MongoDB with Python and want Pydantic-based models and validation
- you need both sync and async database access in the same codebase
- you want static type checking and autocompletion for database queries
- you're building FastAPI/ASGI applications backed by MongoDB
When to avoid
- you use a relational database instead of MongoDB
- you need raw MongoDB aggregation pipeline control or advanced features not exposed by the ODM
- your project is locked to Pydantic v1 or Python < 3.8
Facets
library · maturity active
orm database-driver serialization databases backend web-development developer-tools python mongodb odm pydantic asyncio motor pymongo fastapi type-hints nosql data-validation
3 sources
- readme: https://github.com/art049/odmantic · fetched 2026-08-28 · b1231fe82f46
- homepage: http://art049.github.io/odmantic · fetched 2026-08-29 · 25c48ec3a981
- registry_pypi: https://pypi.org/pypi/odmantic/json · fetched 2026-08-29 · 7067ef85ac61
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| art049/odmantic | main | 81 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem