The current version of Motor requires:
- CPython 2.6, 2.7, or 3.3 and later.
- PyMongo 3.4 and later.
Beginning with version 0.5, Motor can integrate with either Tornado or asyncio.
Requires the futures package from PyPI on Python 2.
The default authentication mechanism for MongoDB 3.0+ is SCRAM-SHA-1. Install backports.pbkdf2 for faster authentication with MongoDB 3.0+, especially on Python older than 2.7.8, or on Python 3.3.
(Python 2.7.9 and later, or Python 3.4 and later, have builtin hash functions nearly as fast as backports.pbkdf2.)
Building the docs requires sphinx.
In Python 2.6, unittest2 is automatically installed by
python setup.py test.
Motor and PyMongo¶
Older versions of Motor depended on exact PyMongo versions. Version 0.7 requires the latest PyMongo 2.9.x release beginning with 2.9.4, Version 1.0 works with any PyMongo version beginning with 3.3.0, and Version 1.1 works with any PyMongo version beginning with 3.4.0.
|Motor Version||PyMongo Version|
Motor and MongoDB¶
All Motor versions are usable with all MongoDB versions as old as 2.2. Where “N” appears there are some incompatibilities and unsupported server features.
There is no relationship between PyMongo and MongoDB version numbers, although the numbers happen to be close or equal in recent releases of PyMongo and MongoDB. Use the PyMongo compatibility matrix to determine what MongoDB version is supported by PyMongo. Use the compatibility matrix above to determine what MongoDB version Motor supports.
Motor and Tornado¶
Where “N” appears in this matrix, the versions of Motor and Tornado are known to be incompatible, or have not been tested together.
Motor and Python¶
Until version 0.5, Motor required Tornado, and it supported the same version of Python as its supported Tornado versions did.
Beginning in version 0.5, Motor integrates with asyncio or Tornado. For asyncio support specifically, Motor requires Python 3.4+, or Python 3.3 with the asyncio package from PyPI.
Motor 1.0 and 1.1 have been tested with recent Python 3.6 betas. I plan to support Python 3.6 as soon as it is released.
Motor does not support Windows:
- The author does not test Motor on Windows to ensure it is correct or fast.
- Tornado is not officially supported on Windows, so Motor’s Tornado integration on Windows is doubly-unsupported.
- Since asyncio does officially support Windows, Motor’s asyncio integration is more likely to work there, but it is untested.
Motor also does not support Jython.