Anthropic Python SDK vs Google GenAI Python SDK
In 1,621 Python projects set up for AI coding agents, Anthropic Python SDK is a dependency in 115 (7.1%) and Google GenAI Python SDK in 101 (6.2%), close to even. Among repos created in the last 90 days that use a model sdks tool, Anthropic Python SDK is in 15.0% and Google GenAI Python SDK in 25.0%, against 27.3% and 23.4% of older ones. 20 projects list both, often a sign of a migration or of a monorepo with several apps.
Model SDKs PyPI Updated Nov 17, 2026
| Anthropic Python SDK | 7.1% | |
|---|---|---|
| Google GenAI Python SDK | 6.2% |
Share of 1,621 Python projects set up for AI coding agents that list each one as a dependency.
Side by side
| Anthropic Python SDK | Google GenAI Python SDK | |
|---|---|---|
| Agent projects that use it | 115 | 101 |
| Rank in model sdks | #6 | #7 |
| In new repos with a model sdks tool (last 90 days) | 15.0% | 25.0% |
| In older repos with one | 27.3% | 23.4% |
| Downloads, last 7 days | 49.8M | 40M |
| GitHub stars | 4,080 | 4,075 |
| Last push to its repo | Nov 16, 2026 | Nov 17, 2026 |
| License | Apache-2.0 | Apache-2.0 |
| Funding | — | — |
| Projects that list both | 20 | |
Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from PyPI.
By coding agent
| Projects set up for | Python repos | Anthropic Python SDK | Google GenAI Python SDK |
|---|---|---|---|
| Claude Code | 782 | 10.1% | 6.3% |
| GitHub Copilot | 805 | 5.0% | 5.2% |
| Cursor | 548 | 6.8% | 6.6% |
| Gemini CLI | 83 | 18.1% | 8.4% |
| OpenAI Codex | 78 | 12.8% | 0% |
| OpenCode | 53 | 17.0% | 0% |
| OpenClaw | 104 | 16.3% | 16.3% |
| Devin Desktop | 60 | 0% | 11.7% |
Share of the Python repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.
Anthropic Python SDK
Official Python library for calling Claude via the Anthropic API.
Most often used with it:
| python-dotenv | 60.9% of its projects |
|---|---|
| OpenAI Python Library | 56.5% of its projects |
| Pydantic | 51.3% of its projects |
| FastAPI | 40.9% of its projects |
| Uvicorn | 40.9% of its projects |
pip install anthropic
Google GenAI Python SDK
Official Python SDK for Google's generative AI models including Gemini.
Most often used with it:
| python-dotenv | 73.3% of its projects |
|---|---|
| Uvicorn | 61.4% of its projects |
| FastAPI | 53.5% of its projects |
| Pydantic | 51.5% of its projects |
| Requests | 48.5% of its projects |
pip install google-genai
More matchups
OpenAI Python Library vs Anthropic Python SDKOpenAI Python Library vs Google GenAI Python SDKOpenAI vs Anthropic SDKAnthropic SDK vs Google Generative AIOpenAI vs Google Generative AI
How we count
Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.