Skip to main content
# `retry` decorator

[![Build Status](https://travis-ci.org/soasme/retries.png?branch=master)](https://travis-ci.org/soasme/retries)

A dead simple way to retry your method.

Through source code:

git clone git://github.com/soasme/retries.git
cd retries
python setup.py install

Usage:

from retry import retry

@retry(errors=(urllib2.URLError), tries=3, delay=3.5)
def fetch_page():
pass

@retry(errors=(TTransportException, ), delay=0.1)
def thrift_call():
pass

Metadata

Release files for retries 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for retries 1.0
File Size Uploaded Provenance Actions
retries-1.0.tar.gz 2.5 kB Without provenance Details for retries-1.0.tar.gz

Release files / retries-1.0.tar.gz

Download URL retries-1.0.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
84de6c78cf29efddacc1597cb2aa06b29e43e63883b8fd8a4fbe280e18044f43
BLAKE2b-256 checksum
How to use checksums
4e5c9e1f690e533eaaffbb88e0de81950ef4ec345a2a7f96a871809b8c55fd17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for retries 1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page