<commit_before>Retrying
=========================


.. image:: https://travis-ci.org/rholder/retrying.png?branch=master
        :target: https://travis-ci.org/rholder/retrying

Retrying is an Apache 2.0 licensed general-purpose retrying library, written in
Python, to simplify the task of adding retry behavior to just about anything.


The simplest use case is retrying a flaky function whenever an Exception occurs
until a value is returned.

.. code-block:: python

    import random
    from retrying import retry

    @retry
    def do_something_unreliable():
        if random.randint(0, 10) > 1:
            raise IOError("Broken sauce, everything is hosed!!!111one")
        else:
            return "Awesome sauce!"

    print do_something_unreliable()


Features
--------
<commit_msg>adding version and download badges<commit_after>Retrying
=========================
.. image:: https://travis-ci.org/rholder/retrying.png?branch=master
    :target: https://travis-ci.org/rholder/retrying

.. image:: https://badge.fury.io/py/retrying.png
    :target: https://pypi.python.org/pypi/retrying

.. image:: https://pypip.in/d/retrying/badge.png
    :target: https://pypi.python.org/pypi/retrying

Retrying is an Apache 2.0 licensed general-purpose retrying library, written in
Python, to simplify the task of adding retry behavior to just about anything.


The simplest use case is retrying a flaky function whenever an Exception occurs
until a value is returned.

.. code-block:: python

    import random
    from retrying import retry

    @retry
    def do_something_unreliable():
        if random.randint(0, 10) > 1:
            raise IOError("Broken sauce, everything is hosed!!!111one")
        else:
            return "Awesome sauce!"

    print do_something_unreliable()


Features
--------

{'fraction_non_alphanumeric': 0.12742382271468145, 'fraction_numerical': 0.009972299168975069, 'mean_word_length': 3.2097902097902096, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5229590', 'n_tokens_mistral': 555, 'n_tokens_neox': 515, 'n_words': 162}