{
 "kind": "tool",
 "slug": "google-cloud-spanner",
 "path": "tools/google-cloud-spanner/",
 "name": "Google Cloud Spanner",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Databases, ORMs and clients",
   "tools/databases-orms/"
  ]
 ],
 "lead": "Python client library for Google Cloud's distributed SQL database.",
 "chips": [
  {
   "label": "Databases, ORMs and clients",
   "path": "tools/databases-orms/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install google-cloud-spanner"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/googleapis/google-cloud-python"
  },
  {
   "label": "Website",
   "href": "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-spanner"
  }
 ],
 "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://github.com/googleapis/google-cloud-python"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 24, 2026",
   "note": "Latest GitHub release Nov 23, 2026. ",
   "src": "https://github.com/googleapis/google-cloud-python"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "1 projects",
   "status": "info",
   "sub": "#86 of 120 in its category",
   "note": "Dependency in 1 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 Google Cloud Spanner does",
   "parts": [
    {
     "t": "prose",
     "text": "Python client library for Google Cloud's distributed SQL database."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Google Cloud Spanner popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "50",
       "of": "/ 100",
       "l": "Gid Score, #1916 overall"
      },
      {
       "n": "3.4M",
       "l": "downloads a week, pypi"
      },
      {
       "n": "5,422",
       "l": "GitHub stars"
      },
      {
       "n": "1",
       "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 Google Cloud Spanner is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Google Cloud Spanner is a dependency in 1 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 28 projects, and what it is used with below comes from all of them.",
      "The most used alternative in our scan is psycopg (72 projects).",
      "Projects that use it most often also use Google Cloud AI Platform (89.3%), Google GenAI Python SDK (82.1%), Google Agent Development Kit (78.6%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 89.3% of its projects",
       "v": "Google Cloud AI Platform",
       "path": "tools/google-cloud-aiplatform/"
      },
      {
       "l": "In 82.1% of its projects",
       "v": "Google GenAI Python SDK",
       "path": "tools/google-genai-pypi/"
      },
      {
       "l": "In 78.6% of its projects",
       "v": "Google Agent Development Kit",
       "path": "tools/google-adk-pypi/"
      },
      {
       "l": "In 78.6% of its projects",
       "v": "Google API Python Client",
       "path": "tools/google-api-python-client/"
      },
      {
       "l": "In 78.6% of its projects",
       "v": "Google Cloud BigQuery",
       "path": "tools/google-cloud-bigquery/"
      },
      {
       "l": "In 78.6% of its projects",
       "v": "Google Cloud Storage (Python)",
       "path": "tools/google-cloud-storage-pypi/"
      },
      {
       "l": "In 78.6% of its projects",
       "v": "google-resumable-media",
       "path": "tools/google-resumable-media/"
      },
      {
       "l": "In 78.6% of its projects",
       "v": "graphviz",
       "path": "tools/graphviz/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about Google Cloud Spanner",
   "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": "Google Cloud Spanner",
       "me": true,
       "facts": [
        "Apache-2.0",
        "Gid 50",
        "3.4M/wk"
       ]
      },
      {
       "name": "psycopg",
       "why": "PostgreSQL database adapter for Python with async support.",
       "path": "tools/psycopg/",
       "facts": [
        "LGPL-3.0-only",
        "Gid 69",
        "57.1M/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": "DuckDB",
       "why": "Embedded SQL OLAP database for analytical queries and data processing in Python.",
       "path": "tools/duckdb/",
       "facts": [
        "MIT",
        "Gid 58",
        "22.6M/wk"
       ]
      },
      {
       "name": "PyMySQL",
       "why": "Pure Python MySQL database driver for database operations.",
       "path": "tools/pymysql/",
       "facts": [
        "MIT",
        "Gid 65",
        "19.9M/wk"
       ]
      }
     ],
     "more": "Compare Google Cloud Spanner with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install google-cloud-spanner"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for Google Cloud Spanner yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi google-cloud-spanner"
  ],
  [
   "Category",
   "Databases, ORMs and clients"
  ],
  [
   "License",
   "Apache-2.0"
  ],
  [
   "Gid Score",
   "50.5"
  ],
  [
   "Rank in category",
   "#86 of 120"
  ],
  [
   "GitHub",
   "googleapis/google-cloud-python"
  ],
  [
   "Last change",
   "Nov 24, 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/googleapis.png"
}