{
  "id": "task_libraries:retry/python",
  "path": "/exapedia/python-retry-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python retry libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python retry libraries run a failed operation again after a delay until it succeeds or reaches a stop condition. A retry policy pairs conditions such as an exception type, a returned value, or an attempt limit with a wait between attempts. These libraries let apps and AI agents recover from network errors and brief outages in the services they call."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python retry libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#tenacity",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F135"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F30"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#backoff",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F149"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F56"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#retry",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F163"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#retrying",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F179"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#stamina",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F195"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F82"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#retrytwo",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F209"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "pypi"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#tenacity",
          "label": [
            {
              "t": "text",
              "text": "Tenacity"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F136"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Async callable retries",
            "Return-value retry predicate"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#tenacity",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F135"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#backoff",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F149"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#retry",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F163"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#retrying",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F179"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#stamina",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F195"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#retrytwo",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F209"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "tenacity",
          "name": [
            {
              "t": "fact",
              "fact": "F135"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/jd/tenacity"
            },
            {
              "label": "pypi",
              "href": "https://pypi.org/project/tenacity"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F36"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F30"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/jd/tenacity",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F135"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F37"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/langchain-ai/langchain-community",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F147"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _create_retry_decorator() -> Callable[[Any], Any]:\n    \"\"\"Returns a tenacity retry decorator.\"\"\"\n\n    multiplier = 1\n    min_seconds = 1\n    max_seconds = 4\n    max_retries = 6\n\n    return retry(\n        reraise=True,\n        stop=stop_after_attempt(max_retries),\n        wait=wait_exponential(multiplier=multiplier, min=min_seconds, max=max_seconds),\n        before_sleep=before_sleep_log(logger, logging.WARNING),\n    )\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/langchain-ai/langchain-community/blob/f425a3ed1933173fb3694b81359d1519c4f82d36/libs/community/langchain_community/embeddings/minimax.py#L20-L33",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F146"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20tenacity%20for%20retry%20behavior&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F135"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from tenacity import retry, stop_after_attempt\n\n@retry(stop=stop_after_attempt(3))\ndef greet():\n    return \"Hello\"\n\nprint(greet())\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/jd/tenacity/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F140"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "backoff",
          "name": [
            {
              "t": "fact",
              "fact": "F149"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/litl/backoff"
            },
            {
              "label": "pypi",
              "href": "https://pypi.org/project/backoff"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F62"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F56"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/litl/backoff",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F149"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/langfuse/langfuse-python",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F161"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _request_with_backoff(\n    self, func: Callable[P, T], *args: P.args, **kwargs: P.kwargs\n) -> T:\n    def _should_give_up(e: Exception) -> bool:\n        if isinstance(e, ApiError):\n            return (\n                e.status_code is not None\n                and 400 <= e.status_code < 500\n                and e.status_code != 429\n            )\n        if isinstance(e, httpx.HTTPStatusError):\n            return (\n                e.response is not None\n                and e.response.status_code < 500\n                and e.response.status_code != 429\n            )\n        return False\n\n    @backoff.on_exception(\n        backoff.expo,\n        Exception,\n        max_tries=self._max_retries,\n        giveup=_should_give_up,\n        logger=None,\n    )\n    def execute_task_with_backoff() -> T:\n        return func(*args, **kwargs)\n\n    return execute_task_with_backoff()\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/langfuse/langfuse-python/blob/077448c7a4ae8708f29e1434177bf9f3c667119b/langfuse/_task_manager/media_manager.py#L512-L540",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20backoff%20for%20retry%20behavior&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F149"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import backoff\n\n@backoff.on_exception(backoff.expo, OSError, max_tries=3)\ndef greet():\n    return \"Hello\"\n\nprint(greet())\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/litl/backoff/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F154"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "retry",
          "name": [
            {
              "t": "fact",
              "fact": "F163"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/invl/retry"
            },
            {
              "label": "pypi",
              "href": "https://pypi.org/project/retry"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F170"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/invl/retry",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F163"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/openatx/uiautomator2",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F177"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@retry(HierarchyEmptyError, tries=3, delay=1)\ndef _do_dump_hierarchy(self, compressed=False, max_depth=None) -> str:\n    if max_depth is None:\n        max_depth = 50\n    content = self.jsonrpc.dumpWindowHierarchy(compressed, max_depth)\n    if content == \"\":\n        raise HierarchyEmptyError(\"dump hierarchy is empty\")\n\n    # '<?xml version=\\'1.0\\' encoding=\\'UTF-8\\' standalone=\\'yes\\' ?>\\r\\n<hierarchy rotation=\"0\" />'\n    if '<hierarchy rotation=\"0\" />' in content:\n        logger.debug(\"dump empty, call clear_traversed_text and retry\")\n        # self.clear_traversed_text()\n        raise HierarchyEmptyError(\"dump hierarchy is empty with no children\")\n    return content",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/openatx/uiautomator2/blob/314e7eb4a9937ba98d0c53b35d1269f15555e427/uiautomator2/__init__.py#L292-L305",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F176"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=retry%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F163"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from retry import retry\n\n@retry(OSError, tries=3, delay=1)\ndef greet():\n    return \"Hello\"\n\nprint(greet())\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/invl/retry/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F168"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "retrying",
          "name": [
            {
              "t": "fact",
              "fact": "F179"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/groodt/retrying"
            },
            {
              "label": "pypi",
              "href": "https://pypi.org/project/retrying"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F186"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/groodt/retrying",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F179"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/openstack/ironic",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F193"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@retrying.retry(\n    stop_max_attempt_number=CONF.agent.neutron_agent_max_attempts,\n    retry_on_exception=lambda e: isinstance(e, exception.NetworkError),\n    wait_fixed=CONF.agent.neutron_agent_status_retry_interval * 1000\n)\ndef wait_for_port_status(client, port_id, status):\n    \"\"\"Wait for port status to be the desired status\n\n    :param client: A Neutron client object.\n    :param port_id: Neutron port_id\n    :param status: Port's target status, can be ACTIVE, DOWN ... etc.\n    :returns: boolean indicates that the port status matches the\n        required value passed by param status.\n    :raises: InvalidParameterValue if the port does not exist.\n    :raises: exception.NetworkError if port status didn't match\n        the required status after max retry attempts.\n    \"\"\"\n    LOG.debug('Validating Port %(port_id)s status is %(status)s',\n              {'port_id': port_id, 'status': status})\n    port = _get_port_by_uuid(client, port_id)\n    LOG.debug('Port %(port_id)s status is: %(status)s',\n              {'port_id': port_id, 'status': port.status})\n    if port.status == status:\n        return True\n    raise exception.NetworkError(\n        'Port %(port_id)s failed to reach status %(status)s' % {\n            'port_id': port_id, 'status': status})",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/openstack/ironic/blob/71ebba5cf354e3c22991764899d0669dd4be04e6/ironic/common/neutron.py#L907-L933",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F192"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=retrying%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F179"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from retrying import retry\n\n@retry(stop_max_attempt_number=3, wait_fixed=100)\ndef greet():\n    return \"Hello\"\n\nprint(greet())\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/groodt/retrying/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F184"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "stamina",
          "name": [
            {
              "t": "fact",
              "fact": "F195"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/hynek/stamina"
            },
            {
              "label": "pypi",
              "href": "https://pypi.org/project/stamina"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F88"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F82"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/hynek/stamina",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F195"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F89"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F90"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F91"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F92"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F93"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F94"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F95"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F96"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/earthobservations/wetterdienst",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F207"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@stamina.retry(on=Exception, attempts=3)\ndef list_remote_files_fsspec(\n    url: str, settings: Settings, cache_expiry: CacheExpiry = CacheExpiry.FILEINDEX\n) -> list[str]:\n    \"\"\"Create a listing of all files of a given path on the server.\n\n    The default ttl with ``CacheExpiry.FILEINDEX`` is \"5 minutes\".\n\n    Args:\n        url: The URL to list files from.\n        settings: The settings to use for the listing.\n        cache_expiry: The cache expiration time.\n\n    Returns:\n        A list of all files on the server\n\n    \"\"\"\n    use_cache = not (settings.cache_disable or cache_expiry is CacheExpiry.NO_CACHE)\n    fs = HTTPFileSystem(\n        use_listings_cache=use_cache,\n        listings_expiry_time=not settings.cache_disable and cache_expiry.value,\n        listings_cache_location=settings.cache_dir,\n        client_kwargs=settings.fsspec_client_kwargs,\n        use_certifi=settings.use_certifi,\n    )\n    return fs.find(url)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/earthobservations/wetterdienst/blob/7971d23ffd8a9d09550e8b6473aad39dc31f77ec/src/wetterdienst/util/network.py#L358-L383",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F206"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20stamina%20for%20retry%20behavior&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F195"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import stamina\n\n@stamina.retry(on=OSError, attempts=3)\ndef greet():\n    return \"Hello\"\n\nprint(greet())\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/hynek/stamina/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "tutorial.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F200"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "retrytwo",
          "name": [
            {
              "t": "fact",
              "fact": "F209"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/eSAMTrade/retry"
            },
            {
              "label": "pypi",
              "href": "https://pypi.org/project/retry2"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F216"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/eSAMTrade/retry",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F209"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/openatx/uiautomator2",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F223"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@retry(HierarchyEmptyError, tries=3, delay=1)\ndef _do_dump_hierarchy(self, compressed=False, max_depth=None, root_in_active: Optional[bool] = None) -> str:\n    if max_depth is None:\n        max_depth = 50\n    if root_in_active is None:\n        content = self.jsonrpc.dumpWindowHierarchy(compressed, max_depth)\n    else:\n        content = self.jsonrpc.dumpWindowHierarchy(compressed, max_depth, root_in_active)\n    if content == \"\":\n        raise HierarchyEmptyError(\"dump hierarchy is empty\")\n\n    # '<?xml version=\\'1.0\\' encoding=\\'UTF-8\\' standalone=\\'yes\\' ?>\\r\\n<hierarchy rotation=\"0\" />'\n    if '<hierarchy rotation=\"0\" />' in content:\n        logger.debug(\"dump empty, call clear_traversed_text and retry\")\n        # self.clear_traversed_text()\n        raise HierarchyEmptyError(\"dump hierarchy is empty with no children\")\n    return content",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/openatx/uiautomator2/blob/96f581d3b95efdf16105b767a5d5401c73f7ec0e/uiautomator2/__init__.py#L131-L147",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F222"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=retry2%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F209"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from retry import retry\n\n@retry(OSError, tries=3, delay=1)\ndef greet():\n    return \"Hello\"\n\nprint(greet())\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/eSAMTrade/retry/readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F214"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python retry library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#tenacity",
          "label": [
            {
              "t": "text",
              "text": "Tenacity"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits code that combines retry conditions or retries individual code blocks. "
        },
        {
          "t": "link",
          "href": "#stamina",
          "label": [
            {
              "t": "text",
              "text": "stamina"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits services that want bounded retries with jitter by default. "
        },
        {
          "t": "link",
          "href": "#backoff",
          "label": [
            {
              "t": "text",
              "text": "backoff"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits existing code built on its decorators, although its repository is archived."
        }
      ]
    },
    {
      "q": "What is Tenacity?",
      "a": [
        {
          "t": "link",
          "href": "#tenacity",
          "label": [
            {
              "t": "text",
              "text": "Tenacity"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a retry library with configurable decorators and code-block retry loops. By default it retries exceptions forever without waiting. A stop policy bounds the number of attempts."
        }
      ]
    },
    {
      "q": "Which Python retry libraries support async functions?",
      "a": [
        {
          "t": "link",
          "href": "#tenacity",
          "label": [
            {
              "t": "text",
              "text": "Tenacity"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#backoff",
          "label": [
            {
              "t": "text",
              "text": "backoff"
            }
          ]
        },
        {
          "t": "text",
          "text": " both retry asyncio coroutines. "
        },
        {
          "t": "link",
          "href": "#stamina",
          "label": [
            {
              "t": "text",
              "text": "stamina"
            }
          ]
        },
        {
          "t": "text",
          "text": " supports asyncio and Trio with the same API."
        }
      ]
    },
    {
      "q": "What does stamina add to Tenacity?",
      "a": [
        {
          "t": "link",
          "href": "#stamina",
          "label": [
            {
              "t": "text",
              "text": "stamina"
            }
          ]
        },
        {
          "t": "text",
          "text": " wraps Tenacity with bounded retry defaults, jitter, and instrumentation."
        }
      ]
    },
    {
      "q": "Does stamina resume a generator after its last yielded item?",
      "a": [
        {
          "t": "text",
          "text": "No. A retried generator restarts from the beginning."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, urllib3",
      "display": "urllib3 Retry",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, urllib3",
      "display": "1.6B",
      "asOf": "2026-11-17"
    },
    "F3": {
      "label": "License, urllib3",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, urllib3",
      "display": "2.8.0, Sep 2026",
      "asOf": "2026-09-15"
    },
    "F5": {
      "label": "Package release date, urllib3",
      "display": "Sep 2026",
      "asOf": "2026-09-15"
    },
    "F6": {
      "label": "Repository stars, urllib3",
      "display": "4.1K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Attempt limits, urllib3",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Backoff jitter, urllib3",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Install, urllib3",
      "display": "pip install urllib3",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "What it does, urllib3",
      "display": "Configures HTTP retries by connection errors, reads, redirects, methods, and status codes.",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "strengths lead, urllib3",
      "display": "Separates HTTP failure budgets",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "strengths, urllib3",
      "display": "Set independent connection, read, redirect, and status retry counts.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, urllib3",
      "display": "Filters HTTP methods and statuses",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, urllib3",
      "display": "Combine allowed_methods with status_forcelist when retrying HTTP responses.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "limitations lead, urllib3",
      "display": "Read retries risk duplicate actions",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "limitations, urllib3",
      "display": "A read error can occur after the server received the request.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, urllib3",
      "display": "Backoff is disabled by default",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, urllib3",
      "display": "Set a backoff factor and jitter to space repeated requests.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "Quickstart, urllib3",
      "display": "import urllib3\n\n# Retries wait 0.0s (immediate 2nd attempt), 1.0s, and 2.0s (plus jitter)\nretries = urllib3.Retry(\n    total=3,\n    backoff_factor=0.5,\n    backoff_jitter=0.5,\n    status_forcelist=[429, 500, 502, 503, 504],\n)\nhttp = urllib3.PoolManager(retries=retries)\n",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Project function, urllib3",
      "display": "@classmethod\ndef get_retries(cls):\n    if not ApiConfig.use_retries:\n        return Retry(total=0)\n\n    Retry.BACKOFF_MAX = ApiConfig.max_wait_between_retries\n    retries = Retry(total=ApiConfig.number_of_retries,\n                    connect=ApiConfig.number_of_retries,\n                    read=ApiConfig.number_of_retries,\n                    status_forcelist=ApiConfig.retry_status_codes,\n                    backoff_factor=ApiConfig.retry_backoff_factor,\n                    raise_on_status=False)\n\n    return retries\n",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project function reference, urllib3",
      "display": "connection.py · get_retries()",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project repository, urllib3",
      "display": "quandl/quandl-python",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project stars, quandl/quandl-python",
      "display": "1.4K",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project push date, quandl/quandl-python",
      "display": "Apr 2022",
      "asOf": "2022-04-29"
    },
    "F25": {
      "label": "Library name, tenacity",
      "display": "Tenacity",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Monthly downloads, tenacity",
      "display": "411.4M",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "License, tenacity",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Package release, tenacity",
      "display": "9.2.1, Oct 2026",
      "asOf": "2026-10-07"
    },
    "F29": {
      "label": "Package release date, tenacity",
      "display": "Oct 2026",
      "asOf": "2026-10-07"
    },
    "F30": {
      "label": "Repository stars, tenacity",
      "display": "8.8K",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Attempt limits, tenacity",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Backoff jitter, tenacity",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Async callables, tenacity",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Retry hooks, tenacity",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Install, tenacity",
      "display": "pip install tenacity",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "What it does, tenacity",
      "display": "Provides configurable retry decorators and code-block retry loops.",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "strengths lead, tenacity",
      "display": "Combines retry conditions",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths, tenacity",
      "display": "Retry selected exceptions or returned results with configurable stop and wait policies.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths lead, tenacity",
      "display": "Retries individual code blocks",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths, tenacity",
      "display": "Use a retry iterator and context manager around the failing block.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "limitations lead, tenacity",
      "display": "Defaults retry forever without waiting",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations, tenacity",
      "display": "Set both a stop condition and a wait policy.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations lead, tenacity",
      "display": "Exhaustion wraps the last error",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations, tenacity",
      "display": "Set reraise to expose the original exception directly.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Quickstart, tenacity",
      "display": "from tenacity import Retrying, RetryError, stop_after_attempt\n\ntry:\n    for attempt in Retrying(stop=stop_after_attempt(3)):\n        with attempt:\n            raise Exception('My code is failing!')\nexcept RetryError:\n    pass\n",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Project function, tenacity",
      "display": "def _create_retry_decorator() -> Callable[[Any], Any]:\n    \"\"\"Returns a tenacity retry decorator.\"\"\"\n\n    multiplier = 1\n    min_seconds = 1\n    max_seconds = 4\n    max_retries = 6\n\n    return retry(\n        reraise=True,\n        stop=stop_after_attempt(max_retries),\n        wait=wait_exponential(multiplier=multiplier, min=min_seconds, max=max_seconds),\n        before_sleep=before_sleep_log(logger, logging.WARNING),\n    )\n",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project function reference, tenacity",
      "display": "minimax.py · _create_retry_decorator()",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project repository, tenacity",
      "display": "langchain-ai/langchain-community",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project stars, langchain-ai/langchain-community",
      "display": "285",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project push date, langchain-ai/langchain-community",
      "display": "Jun 2026",
      "asOf": "2026-06-19"
    },
    "F51": {
      "label": "Library name, backoff",
      "display": "backoff",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Monthly downloads, backoff",
      "display": "146.7M",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "License, backoff",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Package release, backoff",
      "display": "2.2.1, Oct 2022",
      "asOf": "2022-10-05"
    },
    "F55": {
      "label": "Package release date, backoff",
      "display": "Oct 2022",
      "asOf": "2022-10-05"
    },
    "F56": {
      "label": "Repository stars, backoff",
      "display": "2.7K",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Attempt limits, backoff",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Backoff jitter, backoff",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Async callables, backoff",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Retry hooks, backoff",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Install, backoff",
      "display": "pip install backoff requests",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "What it does, backoff",
      "display": "Decorates synchronous functions and asyncio coroutines with exception or return-value retries.",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "strengths lead, backoff",
      "display": "Retries exceptions or returned values",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths, backoff",
      "display": "Choose on_exception or on_predicate for the operation’s failure signal.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths lead, backoff",
      "display": "Offers retry event handlers",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths, backoff",
      "display": "Attach handlers for successful calls, retries, and give-up events.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "limitations lead, backoff",
      "display": "Repository is archived",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "limitations, backoff",
      "display": "Account for the archived upstream when choosing a new dependency.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations lead, backoff",
      "display": "Suppressed errors return None",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations, backoff",
      "display": "Disabling raise_on_giveup returns None when retries are exhausted.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Quickstart, backoff",
      "display": "import backoff\nimport requests\n\n@backoff.on_exception(backoff.expo,\n                      requests.exceptions.RequestException,\n                      max_time=60)\ndef get_url(url):\n    return requests.get(url)\n",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Project function, backoff",
      "display": "def _request_with_backoff(\n    self, func: Callable[P, T], *args: P.args, **kwargs: P.kwargs\n) -> T:\n    def _should_give_up(e: Exception) -> bool:\n        if isinstance(e, ApiError):\n            return (\n                e.status_code is not None\n                and 400 <= e.status_code < 500\n                and e.status_code != 429\n            )\n        if isinstance(e, httpx.HTTPStatusError):\n            return (\n                e.response is not None\n                and e.response.status_code < 500\n                and e.response.status_code != 429\n            )\n        return False\n\n    @backoff.on_exception(\n        backoff.expo,\n        Exception,\n        max_tries=self._max_retries,\n        giveup=_should_give_up,\n        logger=None,\n    )\n    def execute_task_with_backoff() -> T:\n        return func(*args, **kwargs)\n\n    return execute_task_with_backoff()\n",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project function reference, backoff",
      "display": "media_manager.py · _request_with_backoff()",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project repository, backoff",
      "display": "langfuse/langfuse-python",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project stars, langfuse/langfuse-python",
      "display": "516",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project push date, langfuse/langfuse-python",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F77": {
      "label": "Library name, stamina",
      "display": "stamina",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Monthly downloads, stamina",
      "display": "5.5M",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "License, stamina",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Package release, stamina",
      "display": "26.2.0, Nov 2026",
      "asOf": "2026-11-15"
    },
    "F81": {
      "label": "Package release date, stamina",
      "display": "Nov 2026",
      "asOf": "2026-11-15"
    },
    "F82": {
      "label": "Repository stars, stamina",
      "display": "1.5K",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Attempt limits, stamina",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Backoff jitter, stamina",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Async callables, stamina",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Retry hooks, stamina",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Install, stamina",
      "display": "pip install stamina httpx2",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "What it does, stamina",
      "display": "Wraps Tenacity with bounded retry defaults, jitter, and instrumentation.",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "strengths lead, stamina",
      "display": "Bounds retries by default",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths, stamina",
      "display": "Configure attempt and total-time limits alongside exponential backoff and jitter.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths lead, stamina",
      "display": "Supports asyncio and Trio",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths, stamina",
      "display": "Use the same retry functions with synchronous and asynchronous operations.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "limitations lead, stamina",
      "display": "Generator retries restart from beginning",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations, stamina",
      "display": "Make repeated yielded work safe before retrying a generator.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations lead, stamina",
      "display": "Custom delays override backoff settings",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "limitations, stamina",
      "display": "An on-hook delay replaces the normal exponential backoff calculation.",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Quickstart, stamina",
      "display": "import httpx2\n\nimport stamina\n\n\n@stamina.retry(on=httpx2.HTTPError, attempts=3)\ndef do_it(code: int) -> httpx2.Response:\n    resp = httpx2.get(f\"https://httpbin.org/status/{code}\")\n    resp.raise_for_status()\n\n    return resp\n\n\n# reveal_type(do_it)\n# note: Revealed type is \"def (code: builtins.int) -> httpx2._models.Response\"\n",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Developer need",
      "display": "Composable retry policies",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Why choose tenacity",
      "display": "configuring exception and result predicates",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Developer need in introduction",
      "display": "composable retry policies",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "When to consider stamina",
      "display": "bounded defaults and instrumentation fit the operation",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need",
      "display": "Existing decorator integrations",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Why choose backoff",
      "display": "exception and return-value retry decorators",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need in introduction",
      "display": "existing decorator integrations",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "When to consider tenacity",
      "display": "return predicates and configurable retry loops are needed",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need",
      "display": "Bounded defaults with async support",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Why choose stamina",
      "display": "bounded retries with jitter and async support",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need in introduction",
      "display": "bounded defaults with async support",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "When to consider tenacity",
      "display": "direct control over result predicates is needed",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Developer need",
      "display": "HTTP transport retry budgets",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Why choose urllib3",
      "display": "connection, read, and status retry settings",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Developer need in introduction",
      "display": "HTTP transport retry budgets",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Page introduction",
      "display": "Python retry libraries let developers retry operations after failures.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: Which Python retry library should I choose?",
      "display": "Tenacity offers configurable exception and returned-result retries.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Which Python retry library should I choose?",
      "display": "stamina wraps Tenacity with limits, jitter, and instrumentation.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Which Python retry library should I choose?",
      "display": "urllib3 Retry configures HTTP retry behavior.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Does Tenacity stop retrying by default?",
      "display": "Its default behavior retries exceptions forever without waiting.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Does Tenacity stop retrying by default?",
      "display": "A stop policy can bound the number of attempts.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Is a backoff cap the same as an overall retry deadline?",
      "display": "urllib3 backoff_max caps the computed delay between attempts.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Is a backoff cap the same as an overall retry deadline?",
      "display": "stamina timeout bounds retry time and rejects a wait that would end after it.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Which libraries retry async callables?",
      "display": "Tenacity supports coroutines.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Which libraries retry async callables?",
      "display": "backoff supports asyncio coroutines.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Which libraries retry async callables?",
      "display": "stamina supports asyncio and Trio with the same API.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Is backoff upstream archived?",
      "display": "The retained upstream repository metadata marks it archived.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: What happens when backoff suppresses the final exception?",
      "display": "Setting raise_on_giveup to false makes an exhausted call return None.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Does urllib3 Retry cover every HTTP status by default?",
      "display": "A forced status retry requires the configured allowed method and status code.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Does urllib3 Retry cover every HTTP status by default?",
      "display": "The status-forcelist setting is disabled by default.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Can HTTP read retries repeat a server-side action?",
      "display": "Read errors happen after the request was sent, so retrying can repeat side effects.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: Does stamina resume a generator after its last yielded item?",
      "display": "A retried generator restarts from the beginning.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: Do custom stamina delays use the normal backoff settings?",
      "display": "A custom on-hook delay overrides the exponential backoff machinery.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: Does Tenacity always raise the original exception on exhaustion?",
      "display": "The default terminal error wraps the failure in RetryError.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "FAQ: Does Tenacity always raise the original exception on exhaustion?",
      "display": "reraise exposes the original exception at the end of the stack trace.",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "FAQ: Does urllib3 Retry enable randomized waits automatically?",
      "display": "Backoff is disabled by default.",
      "asOf": "2026-11-17"
    },
    "F134": {
      "label": "FAQ: Does urllib3 Retry enable randomized waits automatically?",
      "display": "A nonzero backoff_jitter adds a randomized delay.",
      "asOf": "2026-11-17"
    },
    "F135": {
      "label": "Library name, tenacity",
      "display": "Tenacity",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Monthly downloads, tenacity",
      "display": "429.7M",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "License, tenacity",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Package release, tenacity",
      "display": "9.2.1",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Package release date, tenacity",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Install, tenacity",
      "display": "python -m pip install tenacity==9.2.1",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Quickstart, tenacity",
      "display": "from tenacity import retry, stop_after_attempt\n\n@retry(stop=stop_after_attempt(3))\ndef greet():\n    return \"Hello\"\n\nprint(greet())\n",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Async callable retries, tenacity",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Return-value retry predicate, tenacity",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Native policy model, tenacity",
      "display": "Composable retry/stop/wait callbacks and context-managed attempts; synchronous and asynchronous callables.",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Project function, tenacity",
      "display": "def _create_retry_decorator() -> Callable[[Any], Any]:\n    \"\"\"Returns a tenacity retry decorator.\"\"\"\n\n    multiplier = 1\n    min_seconds = 1\n    max_seconds = 4\n    max_retries = 6\n\n    return retry(\n        reraise=True,\n        stop=stop_after_attempt(max_retries),\n        wait=wait_exponential(multiplier=multiplier, min=min_seconds, max=max_seconds),\n        before_sleep=before_sleep_log(logger, logging.WARNING),\n    )\n",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Project source file, tenacity",
      "display": "libs/community/langchain_community/embeddings/minimax.py",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Project full_name, tenacity",
      "display": "langchain-ai/langchain-community",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Project stargazers_count, tenacity",
      "display": "285",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Library name, backoff",
      "display": "backoff",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Monthly downloads, backoff",
      "display": "152.5M",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "License, backoff",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Package release, backoff",
      "display": "2.2.1",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Package release date, backoff",
      "display": "Oct 2022",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Install, backoff",
      "display": "python -m pip install backoff==2.2.1",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Quickstart, backoff",
      "display": "import backoff\n\n@backoff.on_exception(backoff.expo, OSError, max_tries=3)\ndef greet():\n    return \"Hello\"\n\nprint(greet())\n",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Async callable retries, backoff",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Return-value retry predicate, backoff",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Native policy model, backoff",
      "display": "Separate exception and result-predicate decorators with wait-generator factories and runtime keyword callables.",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Project function, backoff",
      "display": "def _request_with_backoff(\n    self, func: Callable[P, T], *args: P.args, **kwargs: P.kwargs\n) -> T:\n    def _should_give_up(e: Exception) -> bool:\n        if isinstance(e, ApiError):\n            return (\n                e.status_code is not None\n                and 400 <= e.status_code < 500\n                and e.status_code != 429\n            )\n        if isinstance(e, httpx.HTTPStatusError):\n            return (\n                e.response is not None\n                and e.response.status_code < 500\n                and e.response.status_code != 429\n            )\n        return False\n\n    @backoff.on_exception(\n        backoff.expo,\n        Exception,\n        max_tries=self._max_retries,\n        giveup=_should_give_up,\n        logger=None,\n    )\n    def execute_task_with_backoff() -> T:\n        return func(*args, **kwargs)\n\n    return execute_task_with_backoff()\n",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Project source file, backoff",
      "display": "langfuse/_task_manager/media_manager.py",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Project full_name, backoff",
      "display": "langfuse/langfuse-python",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Project stargazers_count, backoff",
      "display": "516",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Library name, retry",
      "display": "retry",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Monthly downloads, retry",
      "display": "26.0M",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "License, retry",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Package release, retry",
      "display": "0.9.2",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Package release date, retry",
      "display": "May 2016",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Install, retry",
      "display": "python -m pip install retry==0.9.2",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Quickstart, retry",
      "display": "from retry import retry\n\n@retry(OSError, tries=3, delay=1)\ndef greet():\n    return \"Hello\"\n\nprint(greet())\n",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Official description, retry",
      "display": "Retries a function through a decorator.",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Quickstart source file, retry",
      "display": "README.rst",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Async callable retries, retry",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Return-value retry predicate, retry",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Native policy model, retry",
      "display": "Exception-driven synchronous decorator and retry_call; delay/backoff/jitter use seconds. Imports retry.",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Project function, retry",
      "display": "@retry(HierarchyEmptyError, tries=3, delay=1)\ndef _do_dump_hierarchy(self, compressed=False, max_depth=None) -> str:\n    if max_depth is None:\n        max_depth = 50\n    content = self.jsonrpc.dumpWindowHierarchy(compressed, max_depth)\n    if content == \"\":\n        raise HierarchyEmptyError(\"dump hierarchy is empty\")\n\n    # '<?xml version=\\'1.0\\' encoding=\\'UTF-8\\' standalone=\\'yes\\' ?>\\r\\n<hierarchy rotation=\"0\" />'\n    if '<hierarchy rotation=\"0\" />' in content:\n        logger.debug(\"dump empty, call clear_traversed_text and retry\")\n        # self.clear_traversed_text()\n        raise HierarchyEmptyError(\"dump hierarchy is empty with no children\")\n    return content",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Project source file, retry",
      "display": "uiautomator2/__init__.py",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Project full_name, retry",
      "display": "openatx/uiautomator2",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Project stargazers_count, retry",
      "display": "8.5K",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Library name, retrying",
      "display": "retrying",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Monthly downloads, retrying",
      "display": "25.3M",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "License, retrying",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Package release, retrying",
      "display": "1.4.2",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Package release date, retrying",
      "display": "Aug 2025",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Install, retrying",
      "display": "python -m pip install retrying==1.4.2",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Quickstart, retrying",
      "display": "from retrying import retry\n\n@retry(stop_max_attempt_number=3, wait_fixed=100)\ndef greet():\n    return \"Hello\"\n\nprint(greet())\n",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Official description, retrying",
      "display": "Retries function calls.",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Quickstart source file, retrying",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Async callable retries, retrying",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Return-value retry predicate, retrying",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Native policy model, retrying",
      "display": "Synchronous decorator/Retrying with exception and result predicates; wait/duration settings use milliseconds.",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Project function, retrying",
      "display": "@retrying.retry(\n    stop_max_attempt_number=CONF.agent.neutron_agent_max_attempts,\n    retry_on_exception=lambda e: isinstance(e, exception.NetworkError),\n    wait_fixed=CONF.agent.neutron_agent_status_retry_interval * 1000\n)\ndef wait_for_port_status(client, port_id, status):\n    \"\"\"Wait for port status to be the desired status\n\n    :param client: A Neutron client object.\n    :param port_id: Neutron port_id\n    :param status: Port's target status, can be ACTIVE, DOWN ... etc.\n    :returns: boolean indicates that the port status matches the\n        required value passed by param status.\n    :raises: InvalidParameterValue if the port does not exist.\n    :raises: exception.NetworkError if port status didn't match\n        the required status after max retry attempts.\n    \"\"\"\n    LOG.debug('Validating Port %(port_id)s status is %(status)s',\n              {'port_id': port_id, 'status': status})\n    port = _get_port_by_uuid(client, port_id)\n    LOG.debug('Port %(port_id)s status is: %(status)s',\n              {'port_id': port_id, 'status': port.status})\n    if port.status == status:\n        return True\n    raise exception.NetworkError(\n        'Port %(port_id)s failed to reach status %(status)s' % {\n            'port_id': port_id, 'status': status})",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Project source file, retrying",
      "display": "ironic/common/neutron.py",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Project full_name, retrying",
      "display": "openstack/ironic",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Project stargazers_count, retrying",
      "display": "575",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Library name, stamina",
      "display": "stamina",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Monthly downloads, stamina",
      "display": "5.8M",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "License, stamina",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Package release, stamina",
      "display": "26.2.0",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Package release date, stamina",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Install, stamina",
      "display": "python -m pip install stamina==26.2.0",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Quickstart, stamina",
      "display": "import stamina\n\n@stamina.retry(on=OSError, attempts=3)\ndef greet():\n    return \"Hello\"\n\nprint(greet())\n",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Async callable retries, stamina",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Return-value retry predicate, stamina",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Native policy model, stamina",
      "display": "Opinionated Tenacity wrapper with bounded attempts/time, jitter, instrumentation, and automatic async support. on filters raised exceptions.",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Project function, stamina",
      "display": "@stamina.retry(on=Exception, attempts=3)\ndef list_remote_files_fsspec(\n    url: str, settings: Settings, cache_expiry: CacheExpiry = CacheExpiry.FILEINDEX\n) -> list[str]:\n    \"\"\"Create a listing of all files of a given path on the server.\n\n    The default ttl with ``CacheExpiry.FILEINDEX`` is \"5 minutes\".\n\n    Args:\n        url: The URL to list files from.\n        settings: The settings to use for the listing.\n        cache_expiry: The cache expiration time.\n\n    Returns:\n        A list of all files on the server\n\n    \"\"\"\n    use_cache = not (settings.cache_disable or cache_expiry is CacheExpiry.NO_CACHE)\n    fs = HTTPFileSystem(\n        use_listings_cache=use_cache,\n        listings_expiry_time=not settings.cache_disable and cache_expiry.value,\n        listings_cache_location=settings.cache_dir,\n        client_kwargs=settings.fsspec_client_kwargs,\n        use_certifi=settings.use_certifi,\n    )\n    return fs.find(url)",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Project source file, stamina",
      "display": "src/wetterdienst/util/network.py",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Project full_name, stamina",
      "display": "earthobservations/wetterdienst",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Project stargazers_count, stamina",
      "display": "457",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Library name, retry2",
      "display": "retry2",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Monthly downloads, retry2",
      "display": "2.1M",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "License, retry2",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Package release, retry2",
      "display": "0.9.5",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Package release date, retry2",
      "display": "Jan 2023",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Install, retry2",
      "display": "python -m pip install retry2==0.9.5",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Quickstart, retry2",
      "display": "from retry import retry\n\n@retry(OSError, tries=3, delay=1)\ndef greet():\n    return \"Hello\"\n\nprint(greet())\n",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Official description, retry2",
      "display": "Retries a function through a decorator.",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Quickstart source file, retry2",
      "display": "README.rst",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Async callable retries, retry2",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Return-value retry predicate, retry2",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Native policy model, retry2",
      "display": "Separately published fork exporting the same retry import namespace; adds exception callback/log controls, still synchronous exception-based retry.",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Project function, retry2",
      "display": "@retry(HierarchyEmptyError, tries=3, delay=1)\ndef _do_dump_hierarchy(self, compressed=False, max_depth=None, root_in_active: Optional[bool] = None) -> str:\n    if max_depth is None:\n        max_depth = 50\n    if root_in_active is None:\n        content = self.jsonrpc.dumpWindowHierarchy(compressed, max_depth)\n    else:\n        content = self.jsonrpc.dumpWindowHierarchy(compressed, max_depth, root_in_active)\n    if content == \"\":\n        raise HierarchyEmptyError(\"dump hierarchy is empty\")\n\n    # '<?xml version=\\'1.0\\' encoding=\\'UTF-8\\' standalone=\\'yes\\' ?>\\r\\n<hierarchy rotation=\"0\" />'\n    if '<hierarchy rotation=\"0\" />' in content:\n        logger.debug(\"dump empty, call clear_traversed_text and retry\")\n        # self.clear_traversed_text()\n        raise HierarchyEmptyError(\"dump hierarchy is empty with no children\")\n    return content",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Project source file, retry2",
      "display": "uiautomator2/__init__.py",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Project full_name, retry2",
      "display": "openatx/uiautomator2",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Project stargazers_count, retry2",
      "display": "8.5K",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best Python retry libraries Tenacity backoff stamina urllib3 code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
