{
 "kind": "tool",
 "slug": "mysqlclient",
 "path": "tools/mysqlclient/",
 "name": "mysqlclient",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Databases, ORMs and clients",
   "tools/databases-orms/"
  ]
 ],
 "lead": "Fast C-based MySQL driver for Python, used by Django.",
 "chips": [
  {
   "label": "Databases, ORMs and clients",
   "path": "tools/databases-orms/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install mysqlclient"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/PyMySQL/mysqlclient"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "GPL-2.0-or-later",
   "status": "cond",
   "sub": "Share your code if you ship it",
   "quote": null,
   "note": "License from PyPI license expression.",
   "src": "https://github.com/PyMySQL/mysqlclient"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 18, 2026",
   "note": "Latest GitHub release Nov 18, 2026. ",
   "src": "https://github.com/PyMySQL/mysqlclient"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "Not in our scan",
   "status": "info",
   "sub": "#110 of 120 in its category",
   "note": "Dependency in 0 public GitHub projects set up for AI coding agents that we scanned (0.0%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "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 mysqlclient does",
   "parts": [
    {
     "t": "prose",
     "text": "Fast C-based MySQL driver for Python, used by Django."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "mysqlclient popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "45",
       "of": "/ 100",
       "l": "Gid Score, #2558 overall"
      },
      {
       "n": "3.3M",
       "l": "downloads a week, pypi"
      },
      {
       "n": "2,543",
       "l": "GitHub stars"
      }
     ]
    },
    {
     "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 mysqlclient is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "mysqlclient joined the catalog on its public numbers (3,304,280 downloads a week on PyPI and 2,543 GitHub stars), not on our project count: it is a dependency in 17 public GitHub projects of our scan, 0 of them set up for AI coding agents.",
      "The most used alternative in our scan is PyMySQL (21 projects).",
      "Projects that use it most often also use NumPy (88.2%), packaging (88.2%), Pillow (88.2%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 88.2% of its projects",
       "v": "NumPy",
       "path": "tools/numpy/"
      },
      {
       "l": "In 88.2% of its projects",
       "v": "packaging",
       "path": "tools/packaging/"
      },
      {
       "l": "In 88.2% of its projects",
       "v": "Pillow",
       "path": "tools/pillow/"
      },
      {
       "l": "In 88.2% of its projects",
       "v": "python-dateutil",
       "path": "tools/python-dateutil/"
      },
      {
       "l": "In 88.2% of its projects",
       "v": "Requests",
       "path": "tools/requests-py/"
      },
      {
       "l": "In 82.4% of its projects",
       "v": "MarkupSafe",
       "path": "tools/markupsafe/"
      },
      {
       "l": "In 82.4% of its projects",
       "v": "oauthlib",
       "path": "tools/oauthlib/"
      },
      {
       "l": "In 82.4% of its projects",
       "v": "PyYAML",
       "path": "tools/pyyaml/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about mysqlclient",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "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": "SQLAlchemy",
         "path": "tools/sqlalchemy/"
        },
        {
         "text": "better-sqlite3",
         "path": "tools/better-sqlite3/"
        },
        {
         "text": "psycopg2",
         "path": "tools/psycopg2-binary/"
        },
        {
         "text": "Alembic",
         "path": "tools/alembic/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "mysqlclient",
       "me": true,
       "facts": [
        "GPL-2.0-or-later",
        "Gid 45",
        "3.3M/wk"
       ]
      },
      {
       "name": "PyMySQL",
       "why": "Pure Python MySQL database driver for database operations.",
       "path": "tools/pymysql/",
       "facts": [
        "MIT",
        "Gid 65",
        "19.9M/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 mysqlclient with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install mysqlclient"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for mysqlclient yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi mysqlclient"
  ],
  [
   "Category",
   "Databases, ORMs and clients"
  ],
  [
   "License",
   "GPL-2.0-or-later"
  ],
  [
   "Gid Score",
   "45.0"
  ],
  [
   "Rank in category",
   "#110 of 120"
  ],
  [
   "GitHub",
   "PyMySQL/mysqlclient"
  ],
  [
   "Last change",
   "Nov 18, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/pymysql.png"
}