Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-76

Don't require Tornado

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Now that Motor supports asyncio, arrange for Motor to work without Tornado installed.

      Plan: Move contents of motor/__init__.py into motor/motor_tornado.py, and make it the officially supported idiom for users to do imports like this:

      from motor.motor_tornado import MotorClient
      

      For 0.5, continue supporting the old style to import Motor's Tornado classes like:

      from motor import MotorClient
      

      motor/__init__.py will just do:

      try:
          import tornado
      except ImportError:
          pass
      else:
          from motor.motor_tornado import *
      

      Post a big deprecation warning in the docs.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jesse A. Jesse Jiryu Davis
              Reporter:
              jesse A. Jesse Jiryu Davis
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: