{
 "kind": "tool",
 "slug": "tenacity",
 "path": "tools/tenacity/",
 "name": "Tenacity",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Utilities",
   "tools/utilities/"
  ]
 ],
 "lead": "Retry library for Python that simplifies adding retry logic with exponential backoff.",
 "chips": [
  {
   "label": "Utilities",
   "path": "tools/utilities/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install tenacity"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/jd/tenacity"
  },
  {
   "label": "Website",
   "href": "https://github.com/jd/tenacity"
  }
 ],
 "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 license expression.",
   "src": "https://github.com/jd/tenacity"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 1, 2026",
   "note": "Latest GitHub release Oct 7, 2026. ",
   "src": "https://github.com/jd/tenacity"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "84 projects",
   "status": "info",
   "sub": "#13 of 408 in its category",
   "note": "Dependency in 84 public GitHub projects set up for AI coding agents that we scanned (1.3%).",
   "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 Tenacity does",
   "parts": [
    {
     "t": "prose",
     "text": "Retry library for Python that simplifies adding retry logic with exponential backoff."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Tenacity popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "77",
       "of": "/ 100",
       "l": "Gid Score, #143 overall"
      },
      {
       "n": "104M",
       "l": "downloads a week, pypi"
      },
      {
       "n": "8,839",
       "l": "GitHub stars"
      },
      {
       "n": "84",
       "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 Tenacity is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Tenacity is a dependency in 84 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (5.2% of the 1,623 Python ones), #13 of 408 in utilities.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 1,324; those are left out of every share on this page.",
      "Projects that use it most often also use Pydantic (83.3%), python-dotenv (71.4%), FastAPI (65.5%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "49 projects, 1.5%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "42 projects, 1.4%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "35 projects, 1.4%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "10 projects, 2.1%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "6 projects, 1.8%",
       "v": "OpenClaw",
       "path": "agents/openclaw/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 83.3% of its projects",
       "v": "Pydantic",
       "path": "tools/pydantic/"
      },
      {
       "l": "In 71.4% of its projects",
       "v": "python-dotenv",
       "path": "tools/python-dotenv/"
      },
      {
       "l": "In 65.5% of its projects",
       "v": "FastAPI",
       "path": "tools/fastapi/"
      },
      {
       "l": "In 65.5% of its projects",
       "v": "Uvicorn",
       "path": "tools/uvicorn/"
      },
      {
       "l": "In 58.3% of its projects",
       "v": "OpenAI Python Library",
       "path": "tools/openai-pypi/"
      },
      {
       "l": "In 53.6% of its projects",
       "v": "Pydantic Settings",
       "path": "tools/pydantic-settings/"
      },
      {
       "l": "In 53.6% of its projects",
       "v": "PyYAML",
       "path": "tools/pyyaml/"
      },
      {
       "l": "In 52.4% of its projects",
       "v": "Requests",
       "path": "tools/requests-py/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about Tenacity",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/jd",
        "2 GitHub sponsors"
       ]
      },
      {
       "title": "More in Utilities",
       "path": "tools/utilities/",
       "items": [
        {
         "text": "clsx",
         "path": "tools/clsx/"
        },
        {
         "text": "date-fns",
         "path": "tools/date-fns/"
        },
        {
         "text": "PyYAML",
         "path": "tools/pyyaml/"
        },
        {
         "text": "uuid",
         "path": "tools/uuid/"
        },
        {
         "text": "yaml",
         "path": "tools/yaml/"
        },
        {
         "text": "js-yaml",
         "path": "tools/js-yaml/"
        },
        {
         "text": "glob",
         "path": "tools/glob/"
        },
        {
         "text": "Lodash",
         "path": "tools/lodash/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Tenacity",
       "me": true,
       "facts": [
        "Apache-2.0",
        "Gid 77",
        "104M/wk"
       ]
      }
     ],
     "more": "Compare Tenacity with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install tenacity"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for Tenacity yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi tenacity"
  ],
  [
   "Category",
   "Utilities"
  ],
  [
   "License",
   "Apache-2.0"
  ],
  [
   "Gid Score",
   "77.4"
  ],
  [
   "Rank in category",
   "#13 of 408"
  ],
  [
   "GitHub",
   "jd/tenacity"
  ],
  [
   "Last change",
   "Nov 1, 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/jd.png"
}