{"id":29940001,"url":"https://github.com/pyprogrammerblog/python-retry","last_synced_at":"2025-09-11T13:11:06.654Z","repository":{"id":43261414,"uuid":"467964591","full_name":"pyprogrammerblog/python-retry","owner":"pyprogrammerblog","description":"A simple retry mechanism with some cool functionalities.","archived":false,"fork":false,"pushed_at":"2024-04-12T07:08:00.000Z","size":18,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-03T22:41:47.604Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pyprogrammerblog.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-09T14:37:45.000Z","updated_at":"2024-04-01T20:29:25.000Z","dependencies_parsed_at":"2022-09-11T06:20:58.161Z","dependency_job_id":null,"html_url":"https://github.com/pyprogrammerblog/python-retry","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pyprogrammerblog/python-retry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyprogrammerblog%2Fpython-retry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyprogrammerblog%2Fpython-retry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyprogrammerblog%2Fpython-retry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyprogrammerblog%2Fpython-retry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyprogrammerblog","download_url":"https://codeload.github.com/pyprogrammerblog/python-retry/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyprogrammerblog%2Fpython-retry/sbom","scorecard":{"id":751736,"data":{"date":"2025-08-11","repo":{"name":"github.com/pyprogrammerblog/python-retry","commit":"ebeb787514ae5f05d72972d7b81cc71124db66cb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/pyprogrammerblog/python-retry/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/pyprogrammerblog/python-retry/main.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/main.yml:33","Warn: pipCommand not pinned by hash: .github/workflows/main.yml:34","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T20:34:03.351Z","repository_id":43261414,"created_at":"2025-08-22T20:34:03.352Z","updated_at":"2025-08-22T20:34:03.352Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274640913,"owners_count":25322843,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-03T00:43:43.100Z","updated_at":"2025-09-11T13:11:06.646Z","avatar_url":"https://github.com/pyprogrammerblog.png","language":"Python","readme":"Python Retry\n=============\n\n.. image:: https://img.shields.io/badge/License-MIT-yellow.svg\n    :target: https://github.com/pyprogrammerblog/python-retry/blob/master/LICENSE\n    :alt: License-MIT\n\n.. image:: https://readthedocs.org/projects/py-retry/badge/?version=latest\n    :target: https://py-retry.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n\n.. image:: https://github.com/pyprogrammerblog/python-retry/workflows/Test%20Suite/badge.svg/\n    :alt: GitHub Actions\n\n.. image:: https://badge.fury.io/py/python-retry.svg/\n    :target: https://badge.fury.io/py/python-retry/\n    :alt: Badge PyPi\n\n\nFeatures\n----------\n\n1. Generic Decorator\n2. Specify stop condition (i.e. limit by number of attempts)\n3. Specify wait condition (i.e. exponential backoff sleeping between attempts)\n4. Customize retrying on Exceptions\n\n`Read the docs \u003chttps://py-retry.readthedocs.io/en/latest/\u003e`_ for further information.\n\nInstallation\n-------------\n\nInstall using ``pip``::\n\n    pip install python-retry\n\n\nExample\n--------\n\n.. code:: python\n\n    \u003e\u003e\u003e from python_retry import retry\n    \u003e\u003e\u003e import pytest\n    \u003e\u003e\u003e\n    \u003e\u003e\u003e @retry()\n    ... def div(num: int, den: int):\n    ...     return num/den\n    \u003e\u003e\u003e\n    \u003e\u003e\u003e div(1, 0)\n\n\nAdvanced use\n--------------\n\n.. code:: python\n\n    \u003e\u003e\u003e import logging\n    \u003e\u003e\u003e logger = logging.getLogger(\"foo\")\n    \u003e\u003e\u003e\n    \u003e\u003e\u003e @retry(\n    ...     retry_on=(ZeroDivisionError,),\n    ...     max_retries=2,\n    ...     backoff_factor=1,\n    ...     supress_exception=True,\n    ...     retry_logger=logger\n    ... )\n    ... def div(num: int, den: int):\n    ...     return num / den\n    \u003e\u003e\u003e\n    \u003e\u003e\u003e div(1, 0)\n\n\nDocumentation\n---------------\n\nYou can find here at `Read the docs \u003chttps://py-retry.readthedocs.io/en/latest/\u003e`_ the complete documentation.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyprogrammerblog%2Fpython-retry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyprogrammerblog%2Fpython-retry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyprogrammerblog%2Fpython-retry/lists"}