retry:易于使用的python重试装饰器

时间:2021-05-14 17:52:37
【文件属性】:
文件名称:retry:易于使用的python重试装饰器
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-14 17:52:37
Python 重试 易于使用的重试装饰器。 特征 没有外部依赖性(仅stdlib)。 (可选)保留功能签名(pip安装修饰符)。 原始回溯,易于调试。 安装 $ pip install retry 原料药 重试装饰器 def retry ( exceptions = Exception , tries = - 1 , delay = 0 , max_delay = None , backoff = 1 , jitter = 0 , logger = logging_logger ): """Return a retry decorator. :param exceptions: an exception or a tuple of exceptions to catch. default: Exception. :param tries: the maximum numb
【文件预览】:
retry-master
----setup.py(127B)
----.gitignore(332B)
----requirements.txt(35B)
----retry()
--------compat.py(660B)
--------__init__.py(252B)
--------api.py(4KB)
----test-requirements.txt(26B)
----LICENSE(545B)
----ChangeLog(2KB)
----setup.cfg(779B)
----README.rst(5KB)
----tests()
--------test_retry.py(4KB)
----AUTHORS(179B)
----tox.ini(628B)

网友评论