{"id":16532722,"url":"https://github.com/wpjunior/tornado-retry-client","last_synced_at":"2025-10-28T11:31:24.861Z","repository":{"id":31487471,"uuid":"35051620","full_name":"wpjunior/tornado-retry-client","owner":"wpjunior","description":"Simple retry tornado http client","archived":false,"fork":false,"pushed_at":"2019-08-27T21:34:41.000Z","size":37,"stargazers_count":8,"open_issues_count":3,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-01T14:51:10.344Z","etag":null,"topics":["backoff","python","retry","tornado"],"latest_commit_sha":null,"homepage":null,"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/wpjunior.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2015-05-04T18:23:12.000Z","updated_at":"2024-10-26T14:17:56.000Z","dependencies_parsed_at":"2022-09-01T19:11:28.598Z","dependency_job_id":null,"html_url":"https://github.com/wpjunior/tornado-retry-client","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpjunior%2Ftornado-retry-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpjunior%2Ftornado-retry-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpjunior%2Ftornado-retry-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpjunior%2Ftornado-retry-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpjunior","download_url":"https://codeload.github.com/wpjunior/tornado-retry-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238645721,"owners_count":19506899,"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","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":["backoff","python","retry","tornado"],"created_at":"2024-10-11T18:13:17.414Z","updated_at":"2025-10-28T11:31:24.529Z","avatar_url":"https://github.com/wpjunior.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://secure.travis-ci.org/wpjunior/tornado-retry-client.png)](http://travis-ci.org/wpjunior/tornado-retry-client)\n[![PyPI version](https://badge.fury.io/py/tornado-retry-client.svg)](https://badge.fury.io/py/tornado-retry-client)\n\n# Tornado Retry Client\nSimple retry tornado http client that support [exponential retries with backoff](http://dthain.blogspot.com/2009/02/exponential-backoff-in-distributed.html)!\n\n## Install\n\nwith pip:\n\n```bash\npip install tornado-retry-client\n```\n\n## Usage\n```python\nfrom tornado.httpclient import AsyncHTTPClient, HTTPError\nfrom tornado_retry_client import http_retry\n\nhttp_client = AsyncHTTPClient()\n\n@gen.coroutine\ndef do_my_request()\n    try:\n        response = yield http_retry(http_client, 'http://globo.com', attempts=2)\n    except HTTPError:\n        pass # My request failed after 2 retries\n\n# OR\n\nfrom tornado_retry_client import RetryClient\n\nretry_client = RetryClient(\n    retry_attempts=3,\n    retry_start_timeout=0.5,\n    retry_max_timeout=10,\n    retry_factor=2,\n)\n\n@gen.coroutine\ndef do_my_request()\n    try:\n        response = yield retry_client.fetch('http://globo.com')\n    except HTTPError:\n        pass # My request failed after 2 retries\n```\n\n## Development\n\nWith empty virtualenv for this project, run this command:\n```bash\nmake setup\n```\n\nand run all tests =)\n```bash\nmake test\n```\n\n## Contributing\nFork, patch, test, and send a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpjunior%2Ftornado-retry-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpjunior%2Ftornado-retry-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpjunior%2Ftornado-retry-client/lists"}