Skip to main content

Decorator for retrying exec a method

Project description

# `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

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

retries-1.0.tar.gz (2.5 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page