Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Decorator for retrying exec a method

Project description

# `retry` decorator

[![Build Status](](

A dead simple way to retry your method.

Through source code:

git clone git://
cd retries
python install


from retry import retry

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

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

Project details

Release history Release notifications

This version


Download files

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

Files for retries, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size retries-1.0.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page