# PyMongo

> MongoDB's official Python driver, with sync and async APIs

Source: https://talira.ai/catalog/pymongo-hkfc62fv
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / databases / drivers](https://talira.ai/categories/libraries/databases/drivers), [languages / python](https://talira.ai/categories/languages/python)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Supports: [SemVer](https://talira.ai/standards/semver.md)[^1]
- Backed by: [MongoDB](https://talira.ai/orgs/mongodb.md)

PyMongo is MongoDB's official Python driver. The distribution has three packages: pymongo, a native driver for [MongoDB](https://talira.ai/catalog/mongodb-bnayk648.md) with synchronous and asynchronous APIs; bson, its implementation of the BSON format; and gridfs, for storing large files in MongoDB. It supports MongoDB 4.4 through 9.0, follows semantic versioning, and has optional extras for mongodb+srv URIs, GSSAPI and AWS authentication, OCSP, wire compression and client-side field level encryption.

## Links

- GitHub: https://github.com/mongodb/mongo-python-driver
- Docs: https://www.mongodb.com/docs/languages/python/pymongo-driver/current/

## Problems it solves

- connect my Python app to a MongoDB database
- query MongoDB from asyncio code without a separate async driver
- store large files in MongoDB from Python

## Features

- synchronous and asynchronous APIs
- bson package for the BSON format
- GridFS for large files
- supports MongoDB 4.4 to 9.0
- optional extras for SRV URIs, GSSAPI and AWS auth, OCSP, compression and client-side field level encryption

## Limitations

- It ships its own bson package, so the unrelated bson package on PyPI must not be installed alongside it.[^1]
- Needs CPython 3.11 or later.[^1]

## Trust

Overall: 0.68 out of 1.
Signals: maintenance 1.00, adoption 0.73, momentum 0.40, community 0.96, backing 0.30, extensibility 0.00.

- last commit 4 days ago
- 217 commits in the last 90 days
- latest release 4.20.2 4 days ago
- 4.4k GitHub stars
- 254 contributors
- backed by MongoDB

## Related

- Works with [MongoDB](https://talira.ai/catalog/mongodb-bnayk648.md)

## Alternatives

- [redis-py](https://talira.ai/catalog/redis-py-tn88dfg8.md): The official Python client for Redis

## Sources

[^1]: https://github.com/mongodb/mongo-python-driver/blob/main/README.md (checked 29 Nov 2026)
[^2]: https://github.com/mongodb/mongo-python-driver/blob/main/LICENSE (checked 29 Nov 2026)
