# mongodb/mongo-python-driver

PyMongo - the Official MongoDB Python driver

Repository: https://github.com/mongodb/mongo-python-driver
Canonical: https://ross.abutalabs.com/products/mongo-python-driver
Homepage: https://www.mongodb.com/docs/languages/python/pymongo-driver/current/
Language: Python
License: Apache-2.0
License Family: permissive
Topics: mongodb, mongodb-driver, pymongo, python, python-library
Last push: 2026-08-26T20:06:57+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 80, longevity 100
- inputs: {"age_days": 6439, "days_push": 7, "days_rel": 135, "gap_med": 17.5, "n_releases_24m": 23}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4352, forks 1158 (observed 2026-08-28T04:08:46.320358+00:00)

## What it is
PyMongo is the official MongoDB driver for Python, providing a native API for connecting to and interacting with MongoDB databases, including synchronous and asynchronous interfaces. It also includes a BSON serialization implementation and a GridFS package for storing large files.

## Use cases
- connect to mongodb from python
- store and query documents in mongodb
- save large files with gridfs in python
- use mongodb asynchronously with asyncio
- serialize python objects to bson
- build a python backend on mongodb atlas

## When to choose
- you use MongoDB as your database in a Python application
- you need an officially supported, actively maintained MongoDB driver
- you need GridFS for large file storage or BSON serialization

## When to avoid
- you use a SQL database rather than MongoDB
- you prefer an ODM like MongoEngine or Beanie on top of a driver
- you target a non-MongoDB compatible document store without checking compatibility

## Facets
- artifact type: library
- maturity: stable
- function: database-driver, serialization, database
- domain: databases, developer-tools, backend
- platform: python, cross-platform
- tags: mongodb, pymongo, bson, gridfs, async, official-driver

## Member repositories
- mongodb/mongo-python-driver (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:46.320358+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:21:31.856204+00:00, confidence not recorded.
  - readme: https://github.com/mongodb/mongo-python-driver (fetched 2026-08-28T04:08:46.320358+00:00, sha d602829f6bc7)
  - homepage: https://www.mongodb.com/docs/languages/python/pymongo-driver/current/ (fetched 2026-08-29T09:10:43.881923+00:00, sha bd108ceade5b)
  - site_page: https://www.mongodb.com/docs/atlas (fetched 2026-08-29T09:10:43.885919+00:00, sha f312e042649e)
  - site_page: https://www.mongodb.com/docs/manual (fetched 2026-08-29T09:10:43.887463+00:00, sha 6a4548d2a71b)
  - site_page: https://www.mongodb.com/docs/tools-and-connectors (fetched 2026-08-29T09:10:43.888956+00:00, sha 7c907d21d3d3)
  - site_page: https://www.mongodb.com/docs/drivers (fetched 2026-08-29T09:10:43.890680+00:00, sha 194534c44bc5)
  - site_page: https://www.mongodb.com/docs/atlas/architecture/current/solutions-library (fetched 2026-08-29T09:10:43.892271+00:00, sha 0dfd723aadd5)
  - site_page: https://www.mongodb.com/company/newsroom (fetched 2026-08-29T09:10:43.893710+00:00, sha e3f69e7b7c0c)
  - site_page: https://www.mongodb.com/company/partners (fetched 2026-08-29T09:10:43.895374+00:00, sha 342527daf5e8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
