{
 "kind": "tool",
 "slug": "motor",
 "path": "tools/motor/",
 "name": "Motor",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Databases, ORMs and clients",
   "tools/databases-orms/"
  ]
 ],
 "lead": "Async MongoDB driver for Python with Tornado and asyncio support.",
 "chips": [
  {
   "label": "Databases, ORMs and clients",
   "path": "tools/databases-orms/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install motor"
 },
 "links": [
  {
   "label": "Website",
   "href": "https://www.mongodb.org"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "Apache-2.0",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from PyPI classifier.",
   "src": "https://www.mongodb.org"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Not checked yet",
   "status": "unknown",
   "sub": null,
   "note": "",
   "src": "https://www.mongodb.org"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "6 projects",
   "status": "info",
   "sub": "#51 of 120 in its category",
   "note": "Dependency in 6 public GitHub projects set up for AI coding agents that we scanned (0.1%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Community skills",
   "status": "info",
   "sub": "1 skills by others",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Motor does",
   "parts": [
    {
     "t": "prose",
     "text": "Async MongoDB driver for Python with Tornado and asyncio support."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Motor popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "52",
       "of": "/ 100",
       "l": "Gid Score, #1708 overall"
      },
      {
       "n": "2.2M",
       "l": "downloads a week, pypi"
      },
      {
       "n": "6",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Motor is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Motor is a dependency in 6 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 80 projects, and what it is used with below comes from all of them.",
      "The most used alternative in our scan is SQLAlchemy (181 projects).",
      "Projects that use it most often also use Pydantic (91.2%), python-dotenv (87.5%), PyMongo (83.8%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 91.2% of its projects",
       "v": "Pydantic",
       "path": "tools/pydantic/"
      },
      {
       "l": "In 87.5% of its projects",
       "v": "python-dotenv",
       "path": "tools/python-dotenv/"
      },
      {
       "l": "In 83.8% of its projects",
       "v": "PyMongo",
       "path": "tools/pymongo/"
      },
      {
       "l": "In 80.0% of its projects",
       "v": "FastAPI",
       "path": "tools/fastapi/"
      },
      {
       "l": "In 72.5% of its projects",
       "v": "Uvicorn",
       "path": "tools/uvicorn/"
      },
      {
       "l": "In 70.0% of its projects",
       "v": "Requests",
       "path": "tools/requests-py/"
      },
      {
       "l": "In 65.0% of its projects",
       "v": "OpenAI Python Library",
       "path": "tools/openai-pypi/"
      },
      {
       "l": "In 62.5% of its projects",
       "v": "NumPy",
       "path": "tools/numpy/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about Motor",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Agent Skills for it",
       "path": "skills/",
       "items": [
        "motor-model-dynamics: Use this skill when simulating quadrotor physical dynamics — mapping desired thrust/moments to individual motor RPMs via a propeller allocat"
       ]
      },
      {
       "title": "More in Databases, ORMs and clients",
       "path": "tools/databases-orms/",
       "items": [
        {
         "text": "pg",
         "path": "tools/pg/"
        },
        {
         "text": "Drizzle ORM",
         "path": "tools/drizzle-orm/"
        },
        {
         "text": "Prisma",
         "path": "tools/prisma/"
        },
        {
         "text": "Drizzle Kit",
         "path": "tools/drizzle-kit/"
        },
        {
         "text": "better-sqlite3",
         "path": "tools/better-sqlite3/"
        },
        {
         "text": "psycopg2",
         "path": "tools/psycopg2-binary/"
        },
        {
         "text": "Neon Serverless Driver",
         "path": "tools/neondatabase/"
        },
        {
         "text": "psycopg",
         "path": "tools/psycopg/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Motor",
       "me": true,
       "facts": [
        "Apache-2.0",
        "Gid 52",
        "2.2M/wk"
       ]
      },
      {
       "name": "SQLAlchemy",
       "why": "Python SQL toolkit and object-relational mapper for database abstraction.",
       "path": "tools/sqlalchemy/",
       "facts": [
        "MIT",
        "Gid 80",
        "105M/wk"
       ]
      },
      {
       "name": "Alembic",
       "why": "Database migration tool for SQLAlchemy managing schema changes reliably.",
       "path": "tools/alembic/",
       "facts": [
        "MIT",
        "Gid 72",
        "59.2M/wk"
       ]
      },
      {
       "name": "asyncpg",
       "why": "Fast asyncio PostgreSQL driver for non-blocking database operations in Python.",
       "path": "tools/asyncpg/",
       "facts": [
        "Apache-2.0",
        "Gid 71",
        "36.3M/wk"
       ]
      },
      {
       "name": "aiosqlite",
       "why": "Asyncio wrapper for SQLite enabling non-blocking database operations in Python.",
       "path": "tools/aiosqlite/",
       "facts": [
        "MIT",
        "Gid 63",
        "19.2M/wk"
       ]
      },
      {
       "name": "PyMongo",
       "why": "Official MongoDB Python driver for querying and managing MongoDB databases.",
       "path": "tools/pymongo/",
       "facts": [
        "Apache-2.0",
        "Gid 68",
        "18.5M/wk"
       ]
      }
     ],
     "more": "Compare Motor with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install motor"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for Motor yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi motor"
  ],
  [
   "Category",
   "Databases, ORMs and clients"
  ],
  [
   "License",
   "Apache-2.0"
  ],
  [
   "Gid Score",
   "52.4"
  ],
  [
   "Rank in category",
   "#51 of 120"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": null
}