Module Import alias Import alias Import alias Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareLtE NameLoad Num body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad If CompareLtE NameLoad Num body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad If CompareLt NameLoad Num body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad vararg kwarg body Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad While CompareGtE NameLoad Num body TryExcept body Return Call NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad AugAssignSub NameStore Num If CompareEq NameLoad Num body Break Expr Call AttributeLoad NameLoad attr NameLoad AugAssignMult NameStore NameLoad Raise NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Str decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Call NameLoad TryExcept body Expr BinOpMod NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list
N/A N/A functools N/A logging N/A socket N/A time AutoRetryConfig N/A object N/A N/A Hold the auto-retry configuration.

    Attributes:
        retry_attempts (int): Maximum number of connection retries
        retry_wait (int): The initial time to wait between retries
        retry_backoff (int): Amount by which wait time should be multiplied
            after each failure
     __init__ N/A N/A self retry_attempts retry_wait retry_backoff N/A N/A N/A N/A retry_backoff 1 N/A N/A N/A ValueError retry_backoff should be greater than 1. N/A N/A self retry_backoff retry_backoff N/A N/A retry_wait 0 N/A N/A N/A ValueError retry_wait should be positive. N/A N/A self retry_wait retry_wait N/A N/A retry_attempts 0 N/A N/A N/A ValueError retry_attempts should be positive or zero N/A N/A self retry_attempts retry_attempts N/A N/A AutoRetryCandidate N/A object N/A N/A Base class for objects wishing to use the @auto_retry decorator.

    Attributes:
        _retry_config (AutoRetryConfig): auto-retry configuration
        _retry_logger (logging.Logger): where to log connection failures
     __init__ N/A N/A self retry_config logger N/A None args kwargs N/A N/A N/A self _retry_config retry_config N/A N/A logger N/A N/A logger N/A N/A logging getLogger N/A N/A self __class__ __module__ N/A N/A self _retry_logger logger N/A N/A N/A N/A super AutoRetryCandidate self __init__ args kwargs N/A N/A auto_retry N/A N/A fun N/A N/A N/A Decorator for retrying method calls, based on instance parameters. decorated N/A N/A instance N/A args kwargs N/A N/A Wrapper around a decorated function. N/A cfg N/A instance _retry_config N/A remaining_tries N/A cfg retry_attempts N/A current_wait N/A cfg retry_wait N/A retry_backoff N/A cfg retry_backoff N/A last_error None N/A N/A remaining_tries 0 N/A N/A N/A N/A N/A fun instance args kwargs N/A N/A N/A N/A socket error N/A e N/A N/A last_error e N/A N/A N/A N/A instance _retry_logger warning Connection failed: %s e N/A remaining_tries 1 N/A N/A remaining_tries 0 N/A N/A N/A N/A N/A time sleep current_wait N/A current_wait retry_backoff N/A last_error N/A N/A N/A functools wraps fun N/A decorated N/A extract_pattern N/A N/A fmt N/A N/A N/A Extracts used strings from a %(foo)s pattern. FakeDict N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self seen_keys N/A set N/A __getitem__ N/A N/A self key N/A N/A N/A N/A N/A N/A self seen_keys add key N/A N/A keys N/A N/A self N/A N/A N/A N/A self seen_keys N/A N/A N/A fake N/A FakeDict N/A N/A N/A N/A fmt fake N/A N/A N/A TypeError N/A N/A N/A N/A list N/A N/A fake keys N/A