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

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Major - P3
    • 4.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Prashant Mital (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: