{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/12"}],"enrichment":{"capability":"Wraps requests Session objects to automatically retry failed HTTP requests due to connection errors, timeouts, and specific HTTP status codes (5XX by default) with configurable backoff.","skillfed_tags":["http-resilience","retry-logic"],"use_cases":["Stabilize web scraping or API client code against intermittent network failures without manual retry loops","Add resilience to microservice calls that may temporarily fail due to transient server issues","Reduce failed requests in data collection pipelines that hit occasionally unreliable endpoints","Simplify client code for services with known flaky infrastructure by centralizing retry logic"],"what_it_does":"retry-requests is a thin wrapper around the requests library that configures a Session to automatically retry failed HTTP requests. It handles transient failures like connection errors, timeouts, and server errors (5XX responses by default), with configurable backoff between retries. The package provides a simple `retry()` function that returns a configured Session, plus convenience subclasses like TSession (with default timeout) and RSession (with automatic raise_for_status).\n\nThe package requires Python 3.6+ and depends only on requests and urllib3. It's straightforward to use: call `retry()` to get a Session with retry behavior, then use it like any normal requests Session. You can customize retry count and backoff factor, though the package has been unmaintained since May 2023.","worth_installing":"Yes, with conditions. The package is simple, has low install friction, and solves a real problem for HTTP clients. However, it is abandoned (last commit May 2023) with no active maintenance, so use it only if you accept that bugs or incompatibilities with future requests versions will not be fixed. For new projects, consider whether a maintained alternative better fits your needs."},"id":"retry-requests","links":{"html":"https://skillfed.io/packages/retry-requests","md":"https://skillfed.io/packages/retry-requests.md","pypi":"https://pypi.org/project/retry-requests/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2023-05-28","license_spdx":null,"license_treatment":"copyleft","name":"retry-requests","python_support":"supports_current","summary":"Make requests's sessions auto-retry on failure."},"popularity":{"monthly_downloads":401064,"position":6931,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.0.0"}
