Menu

Post image 1
Post image 2
Post image 3
Post image 4
Post image 5
Post image 6
Post image 7
Post image 8
Post image 9
Post image 10
Post image 11
Post image 12
Post image 13
Post image 14
Post image 15
1 / 15
1

GitHub - Llucs/backon: Function decoration for backoff and retry — modern, fast, and zero dependencies

Reading 0:00
15s threshold

Function decoration for backoff and retry — modern, fast, zero dependencies. backon is a modern evolution of backoff — a zero-dependency Python library for retry with exponential backoff. It provides decorator, functional, and context manager APIs for both sync and async code. Table of Contents Features Installation Quick Start API Reference Decorators Functional API Context Manager Callers Wait Generators Stop Conditions Retry Conditions Jitter Handlers Global Toggle Async Support Custom Sleep Advanced Features Circuit Breaker Hedging Metrics Testing Utilities Trio Support Retry Context Inspection Dynamic Backoff Hot Loop Detection Retry Statistics Operator Composition Iterator API Migrating from backoff Contributing License Features Zero dependencies — pure Python, stdlib only Four APIs — decorator ( @on_exception , @on_predicate ), functional ( retry() ), context manager ( Retrying ), callable ( RetryingCaller / AsyncRetryingCaller ) Async native — same API works for async def functions Full type hints —…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More