retry-decorator


Nameretry-decorator JSON
Version 1.1.1 PyPI version JSON
download
home_pagehttps://github.com/pnpnpn/retry-decorator
SummaryRetry Decorator
upload_time2020-03-10 23:56:29
maintainer
docs_urlNone
authorPatrick Ng
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            .. image:: https://badge.fury.io/py/retry_decorator.svg
    :target: https://badge.fury.io/py/retry_decorator

.. image:: https://travis-ci.org/pnpnpn/retry-decorator.svg?branch=master
    :target: https://travis-ci.org/pnpnpn/retry-decorator
    
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.
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/pnpnpn/retry-decorator",
    "name": "retry-decorator",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Patrick Ng",
    "author_email": "pn.appdev@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/6e/e6/bedc75b264cbcbf6e6d0e5071d96d739f540fc09be31744a7a8824c02a8e/retry_decorator-1.1.1.tar.gz",
    "platform": "",
    "description": ".. image:: https://badge.fury.io/py/retry_decorator.svg\n    :target: https://badge.fury.io/py/retry_decorator\n\n.. image:: https://travis-ci.org/pnpnpn/retry-decorator.svg?branch=master\n    :target: https://travis-ci.org/pnpnpn/retry-decorator\n    \nUsage\n-----\n\nRetry decorator\n\n::\n\n    #!/usr/bin/env python\n\n    from __future__ import print_function\n    from retry_decorator import *\n\n    @retry(Exception, tries = 3, timeout_secs = 0.1)\n    def test_retry():\n        import sys\n        print('hello', file = sys.stderr)\n        raise Exception('Testing retry')\n\n    if __name__ == '__main__':\n        try:\n            test_retry()\n        except Exception as e:\n            print('Received the last exception')\n\n\nContribute\n---------------\nI would love for you to fork and send me pull request for this project. Please contribute.",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Retry Decorator",
    "version": "1.1.1",
    "project_urls": {
        "Homepage": "https://github.com/pnpnpn/retry-decorator"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6ee6bedc75b264cbcbf6e6d0e5071d96d739f540fc09be31744a7a8824c02a8e",
                "md5": "13e6c3eb5baf27d9665ca150a782a985",
                "sha256": "e1e8ad02e518fe11073f2ea7d80b6b8be19daa27a60a1838aff7c731ddcf2ebe"
            },
            "downloads": -1,
            "filename": "retry_decorator-1.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "13e6c3eb5baf27d9665ca150a782a985",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3902,
            "upload_time": "2020-03-10T23:56:29",
            "upload_time_iso_8601": "2020-03-10T23:56:29.839596Z",
            "url": "https://files.pythonhosted.org/packages/6e/e6/bedc75b264cbcbf6e6d0e5071d96d739f540fc09be31744a7a8824c02a8e/retry_decorator-1.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-03-10 23:56:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pnpnpn",
    "github_project": "retry-decorator",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "tox": true,
    "lcname": "retry-decorator"
}
        
Elapsed time: 1.98373s