Skip to main content
https://badge.fury.io/py/retry_decorator.svg https://travis-ci.org/pnpnpn/retry-decorator.svg?branch=master

Usage

Retry decorator

#!/usr/bin/env python

from __future__ import print_function
from retry_decorator import *

@retry(Exception, tries = 3, timeout_secs = 0.1)
def test_retry():
    import sys
    print('hello', file = sys.stderr)
    raise Exception('Testing retry')

if __name__ == '__main__':
    try:
        test_retry()
    except Exception as e:
        print('Received the last exception')

Contribute

I would love for you to fork and send me pull request for this project. Please contribute.

Metadata

Release files for retry-decorator 1.1.1

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

Source distribution (sdist)

Source distribution for retry-decorator 1.1.1
File Size Uploaded Provenance
retry_decorator-1.1.1.tar.gz 3.9 kB Without provenance Details

Release files / retry_decorator-1.1.1.tar.gz

Download URL retry_decorator-1.1.1.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e1e8ad02e518fe11073f2ea7d80b6b8be19daa27a60a1838aff7c731ddcf2ebe
BLAKE2b-256 checksum
How to use checksums
6ee6bedc75b264cbcbf6e6d0e5071d96d739f540fc09be31744a7a8824c02a8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.7

Security for retry-decorator 1.1.1

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.

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