BSD Ports

devel/py-backoff 2.2.1_2 MidnightBSD

Function decoration for backoff and retry

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
mit
Categories
devel, python

Description

The backoff Python module provides function decorators which can be used to wrap a function such that it will be retried until some condition is met. It is meant to be of use when accessing unreliable resources with the potential for intermittent failures i.e. network resources and external APIs. Somewhat more generally, it may also be of use for dynamically polling resources for externally generated content.

In the other systems

SystemPortVersion
MidnightBSDdevel/py-backoff2.2.1_2
FreeBSDdevel/py-backoff2.2.1_1
OpenBSDdevel/py-backoff2.2.1p1
DragonFlydevel/py-backoff2.2.1_1
HardenedBSDdevel/py-backoff2.2.1_1
GhostBSDdevel/py-backoff2.2.1_1

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}backoff

From mports:

cd /usr/mports/devel/py-backoff && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}backoff>0:devel/py-backoff

Dependencies

Required by 1

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
backoff-2.2.1.tar.gz1700103f829f5bb1923180821643f8753b0502c3b682293992485b0eef2807afa5cba
Master sites 1
  • PYPI