BeanieODM/beanie
Asynchronous Python ODM for MongoDB observed · 2026-08-28
Health v2 · maintenance only
83/100
- Activity 99
- Release rhythm 53
- 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: 92.5
- age_days: 2017
- days_rel: 159
- days_push: 9
- n_releases_24m: 7
Adoption not part of the score
2695 stars · 306 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Beanie is an asynchronous Python object-document mapper (ODM) for MongoDB, with data models built on Pydantic. Each MongoDB collection maps to a Document class supporting CRUD, pythonic queries, aggregations, indexes, and built-in data and schema migrations.
Use cases
- map MongoDB collections to typed Pydantic models in Python
- query MongoDB with pythonic expressions like Product.price < 10
- run async MongoDB CRUD in FastAPI or asyncio apps
- manage MongoDB schema and data migrations
- define indexes declaratively on document fields
- build aggregation pipelines with typed projections
When to choose
- you use MongoDB with async Python (e.g. FastAPI) and want Pydantic-based models
- you want an ODM with migrations, indexes, and relations out of the box
- you prefer typed, pythonic query syntax over raw pymongo dicts
When to avoid
- you need a synchronous ODM (use Bunnet instead)
- you use a relational database or SQL-based ORM
- you rely on Pydantic v1 or very old MongoDB/Python versions
Facets
library · maturity active
orm database-driver database databases backend web-development developer-tools python cross-platform mongodb odm pydantic asyncio motor pymongo schema-migrations
10 sources
- readme: https://github.com/BeanieODM/beanie · fetched 2026-08-28 · e21b6802a4bf
- homepage: http://beanie-odm.dev/ · fetched 2026-08-29 · aa503d94a368
- site_page: http://beanie-odm.dev/getting-started · fetched 2026-08-29 · ca00c4a18d69
- site_page: http://beanie-odm.dev/api-documentation/document · fetched 2026-08-29 · e2acb981244e
- site_page: http://beanie-odm.dev/api-documentation/query · fetched 2026-08-29 · 1069689a5019
- site_page: http://beanie-odm.dev/api-documentation/interfaces · fetched 2026-08-29 · fffce28e37a1
- site_page: http://beanie-odm.dev/api-documentation/operators/find · fetched 2026-08-29 · d9e46a4d137c
- site_page: http://beanie-odm.dev/api-documentation/operators/update · fetched 2026-08-29 · 506f1af6fcaf
- site_page: http://beanie-odm.dev/api-documentation/fields · fetched 2026-08-29 · 9cd7b15a1017
- registry_pypi: https://pypi.org/pypi/beanie/json · fetched 2026-08-29 · 560b1f40a395
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| BeanieODM/beanie | main | 83 |
For agents
markdown · JSON · MCP: product_card(name="BeanieODM/beanie")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem