Skip to content
Agents tracked: 502 Releases (7d): 613 Agent status: 4 with issuesSince last limit reset: Claude 7d · Codex 5d For AI agents: Markdown Updated Nov 18, 2026

python-dotenv vs Pydantic Settings

In 1,621 Python projects set up for AI coding agents, python-dotenv is a dependency in 570 (35.2%) and Pydantic Settings in 217 (13.4%): python-dotenv is 2.6× as common. Among repos created in the last 90 days that use a dev workflow and config tool, python-dotenv is in 56.4% and Pydantic Settings in 20.5%, against 66.7% and 25.4% of older ones. 125 projects list both, often a sign of a migration or of a monorepo with several apps.

Dev workflow and config PyPI Updated Nov 17, 2026

python-dotenv35.2%
Pydantic Settings13.4%

Share of 1,621 Python projects set up for AI coding agents that list each one as a dependency.

Side by side

python-dotenvPydantic Settings
Agent projects that use it570217
Rank in dev workflow and config#3#7
In new repos with a dev workflow and config tool (last 90 days)56.4%20.5%
In older repos with one66.7%25.4%
Downloads, last 7 days179M12M
GitHub stars8,9211,503
Last push to its repoNov 9, 2026Nov 13, 2026
LicenseBSD-3-ClauseMIT
Funding——
Projects that list both125

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 forPython repospython-dotenvPydantic Settings
Claude Code78230.4%14.7%
GitHub Copilot80535.7%14.2%
Cursor54835.0%13.5%
Gemini CLI8330.1%15.7%
OpenAI Codex7825.6%14.1%
OpenCode5330.2%11.3%
OpenClaw10437.5%13.5%
Devin Desktop6038.3%16.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.

python-dotenv

Load environment variables from .env files in Python applications.

Most often used with it:

Pydantic49.5% of its projects
Uvicorn43.9% of its projects
Requests42.5% of its projects
FastAPI39.5% of its projects
OpenAI Python Library30.7% of its projects

pip install python-dotenv

Pydantic Settings

Settings management and configuration from environment variables using Pydantic.

Most often used with it:

Pydantic84.3% of its projects
Uvicorn71.4% of its projects
FastAPI68.2% of its projects
python-dotenv57.6% of its projects
python-multipart41.9% of its projects

pip install pydantic-settings

More matchups

Husky vs LefthookClick vs Typer

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.