skillfed

pymongo

PyMongo - the Official MongoDB Python driver

pymongo Permissive license Apache-2.0 Active 4,352 v4.17.0 released

Install

pymongo on PyPI

pip

pip install pymongo

uv

uv add pymongo

poetry

poetry add pymongo

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.9)
Install friction medium — platform-specific wheel
Runtime dependencies 1 — dnspython
Maintenance actively maintained — 115 days since the last release
Last repo commit
First released
Popularity one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13)
Known vulnerabilities none known (OSV.dev, checked 2026-08-13)

Evidence: pymongo-4.17.0-cp310-cp310-macosx_10_9_x86_64.whl; pymongo-4.17.0-cp310-cp310-macosx_11_0_arm64.whl; pymongo-4.17.0-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl; pymongo-4.17.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; pymongo-4.17.0-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl; pymongo-4.17.0-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl; pymongo-4.17.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; pymongo-4.17.0-cp310-cp310-win32.whl; pymongo-4.17.0-cp310-cp310-win_amd64.whl; pymongo-4.17.0-cp310-cp310-win_arm64.whl; pymongo-4.17.0-cp311-cp311-macosx_10_9_x86_64.whl; pymongo-4.17.0-cp311-cp311-macosx_11_0_arm64.whl; pymongo-4.17.0-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl; pymongo-4.17.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; pymongo-4.17.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl; pymongo-4.17.0-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl; pymongo-4.17.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; pymongo-4.17.0-cp311-cp311-win32.whl; pymongo-4.17.0-cp311-cp311-win_amd64.whl; pymongo-4.17.0-cp311-cp311-win_arm64.whl

Keywords: bson, gridfs, mongo, mongodb, pymongo

Development Status :: 5 - Production/StableIntended Audience :: DevelopersOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: DatabaseTyping :: Typed

About pymongo

from the package's own PyPI description — quoted content, verbatim

PyMongo

PyPI Version (image) Python Versions (image) Monthly Downloads (image) API Documentation Status (image) codecov (image)

About

The PyMongo distribution contains tools for interacting with MongoDB database from Python. The bson package is an implementation of the BSON format for Python. The pymongo package is a native Python driver for MongoDB, offering both synchronous and asynchronous APIs. The gridfs package is a gridfs implementation on top of pymongo.

PyMongo supports MongoDB 4.0, 4.2, 4.4, 5.0, 6.0, 7.0, and 8.0. PyMongo follows [semantic...

Read as markdown · JSON record · Source repository · Homepage · Docs

AI interpretation — verify before relying

AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page

PyMongo is the official Python driver for MongoDB, providing synchronous and asynchronous APIs for database operations, BSON serialization, and GridFS file storage.

Medium install friction due to platform-specific wheels across CPython 3.10–3.14 and PyPy. Active maintenance with recent commits and 4352 GitHub stars. Single runtime dependency on dnspython for mongodb+srv:// URI support.

Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for most production deployments.

Usage

pip install pymongo
import pymongo
client = pymongo.MongoClient("localhost", 27017)
db = client.test
db.my_collection.insert_one({"x": 10})

Requires Python 3.9+ and a running MongoDB instance. dnspython is required for mongodb+srv:// connection URIs.

Verdict: PyMongo 4.17.0 is a mature, actively maintained driver with no known vulnerabilities, broad platform support, and permissive licensing. Medium install friction is typical for a database driver with compiled components. Suitable for production use in applications requiring MongoDB connectivity.

Needs verification

  • Whether the C extension is compiled by default or if pure-Python fallback is available on all platforms
  • Performance characteristics and benchmarks relative to alternative MongoDB Python drivers
  • Specific compatibility guarantees for MongoDB 8.0 and beyond
mongodb python driverpymongo database clientbson serialization pythongridfs file storagemongodb async pythonnosql python clientmongo database connection

Similar packages