Itsnauman Echo Save Abandoned

A decorator for retrying failing operations.

Project README

echo

Build Status

A micro library for retrying failing operations inspired by retry. It's just as simple as decorating the function. It will retry n number of times and then raise a FailingTooHard exception if it doesn't succeed.

import requests
from pyecho import echo

@echo(10) # Retry function upto 10 times
def fetch():
	r = requests.get('http://google.com')
	return r.text

fetch()

Installation

echo can be installed using Pypi, pip install pyecho

License

echo is distributed under MIT license, see LICENSE for more details.

Open Source Agenda is not affiliated with "Itsnauman Echo" Project. README Source: itsnauman/echo
Stars
82
Open Issues
2
Last Commit
9 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating