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

Instantiate framework-specific Motor classes at runtime instead of import time

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • 4.0
    • Affects Version/s: None
    • Component/s: None
    • None

      With the standardization of the syntax for asynchronous programming in Python, it should now be relatively simple to remove the motor_asyncio and motor_tornado submodules that create framework-specific Motor classes at import-time. Instead, we should provide a single, unified API to create framework-specific Motor classes; something like:

      client = MotorClient.with_framework(asyncio)(connection_string, **kwargs)
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            prashant.mital Prashant Mital (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: