Skip to main content

Experimental stub files for PyMongo

Project description

Experimental stub files for PyMongo 3.

pymongo-stubs is NOT an officially supported MongoDB product.



pymongo-stubs can be installed with pip:

$ python3 -m pip install pymongo-stubs

Installing from source

pymongo-stubs’ source code is hosted on Github: mongodb-labs/pymongo-stubs. To install pymongo-stubs from source:

$ git clone
$ python3 -m pip install ./pymongo-stubs


pymongo-stubs is compatible with Python >=3.6 and PyMongo >=3.11,<4.0.


pymongo-stubs adds support for type checking PyMongo 3.X code. This project will not support PyMongo 4. Instead, PyMongo 4 will add inline type annotations (in PYTHON-2432) which removes the need to maintain stub files. This project will reach end-of-life when PYTHON-2432 is completed or when MongoDB drops support for PyMongo 3.X.

Support / Feedback

pymongo-stubs is experimental and is not an officially supported MongoDB product. For questions, discussions, or general technical support, visit the MongoDB Community Forums.

Bugs / Feature Requests

Think you’ve found a bug? Please open a case in our issue management tool, JIRA:

Bug reports in JIRA for all driver projects (i.e. PYTHON, CSHARP, JAVA) and the Core Server (i.e. SERVER) project are public.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymongo-stubs-0.2.0.tar.gz (27.2 kB view hashes)

Uploaded Source

Built Distribution

pymongo_stubs-0.2.0-py3-none-any.whl (39.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page