Let us walk on the 3-isogeny graph
|
Public Member Functions | |
__init__ (self, t.Callable[[t.Union[int, float]], None] sleep=sleep, "StopBaseT" stop=stop_never, "WaitBaseT" wait=wait_none(), "RetryBaseT" retry=retry_if_exception_type(), t.Callable[["RetryCallState"], None] before=before_nothing, t.Callable[["RetryCallState"], None] after=after_nothing, t.Optional[t.Callable[["RetryCallState"], None]] before_sleep=None, bool reraise=False, t.Type[RetryError] retry_error_cls=RetryError, t.Optional[t.Callable[["RetryCallState"], t.Any]] retry_error_callback=None) | |
"BaseRetrying" | copy (self, t.Union[t.Callable[[t.Union[int, float]], None], object] sleep=_unset, t.Union["StopBaseT", object] stop=_unset, t.Union["WaitBaseT", object] wait=_unset, t.Union[retry_base, object] retry=_unset, t.Union[t.Callable[["RetryCallState"], None], object] before=_unset, t.Union[t.Callable[["RetryCallState"], None], object] after=_unset, t.Union[t.Optional[t.Callable[["RetryCallState"], None]], object] before_sleep=_unset, t.Union[bool, object] reraise=_unset, t.Union[t.Type[RetryError], object] retry_error_cls=_unset, t.Union[t.Optional[t.Callable[["RetryCallState"], t.Any]], object] retry_error_callback=_unset) |
str | __repr__ (self) |
t.Dict[str, t.Any] | statistics (self) |
WrappedFn | wraps (self, WrappedFn f) |
None | begin (self) |
t.Union[DoAttempt, DoSleep, t.Any] | iter (self, "RetryCallState" retry_state) |
t.Generator[AttemptManager, None, None] | __iter__ (self) |
WrappedFnReturnT | __call__ (self, t.Callable[..., WrappedFnReturnT] fn, *t.Any args, **t.Any kwargs) |
Data Fields | |
sleep | |
stop | |
wait | |
retry | |
before | |
after | |
before_sleep | |
reraise | |
retry_error_cls | |
retry_error_callback | |
Protected Attributes | |
_local | |
Definition at line 191 of file __init__.py.
__init__ | ( | self, | |
t.Callable[[t.Union[int, float]], None] | sleep = sleep , |
||
"StopBaseT" | stop = stop_never , |
||
"WaitBaseT" | wait = wait_none() , |
||
"RetryBaseT" | retry = retry_if_exception_type() , |
||
t.Callable[["RetryCallState"], None] | before = before_nothing , |
||
t.Callable[["RetryCallState"], None] | after = after_nothing , |
||
t.Optional[t.Callable[["RetryCallState"], None]] | before_sleep = None , |
||
bool | reraise = False , |
||
t.Type[RetryError] | retry_error_cls = RetryError , |
||
t.Optional[t.Callable[["RetryCallState"], t.Any]] | retry_error_callback = None |
||
) |
Reimplemented in TornadoRetrying, and AsyncRetrying.
Definition at line 192 of file __init__.py.
References i.
Referenced by Protocol.__init_subclass__().
WrappedFnReturnT __call__ | ( | self, | |
t.Callable[..., WrappedFnReturnT] | fn, | ||
*t.Any | args, | ||
**t.Any | kwargs | ||
) |
Reimplemented in TornadoRetrying, Retrying, and AsyncRetrying.
Definition at line 359 of file __init__.py.
References i.
t.Generator[AttemptManager, None, None] __iter__ | ( | self | ) |
Reimplemented in AsyncRetrying.
Definition at line 344 of file __init__.py.
References Bar.begin, BaseRetrying.begin(), i, BaseRetrying.iter(), RetryAction.sleep, BaseRetrying.sleep, AsyncRetrying.sleep, TornadoRetrying.sleep, and Retry.sleep().
str __repr__ | ( | self | ) |
Definition at line 244 of file __init__.py.
None begin | ( | self | ) |
Definition at line 301 of file __init__.py.
References clear, i, and BaseRetrying.statistics().
Referenced by AsyncRetrying.__aiter__(), TornadoRetrying.__call__(), Retrying.__call__(), AsyncRetrying.__call__(), BaseRetrying.__iter__(), and Bar.__rich_console__().
"BaseRetrying" copy | ( | self, | |
t.Union[t.Callable[[t.Union[int, float]], None], object] | sleep = _unset , |
||
t.Union["StopBaseT", object] | stop = _unset , |
||
t.Union["WaitBaseT", object] | wait = _unset , |
||
t.Union[retry_base, object] | retry = _unset , |
||
t.Union[t.Callable[["RetryCallState"], None], object] | before = _unset , |
||
t.Union[t.Callable[["RetryCallState"], None], object] | after = _unset , |
||
t.Union[t.Optional[t.Callable[["RetryCallState"], None]], object] | before_sleep = _unset , |
||
t.Union[bool, object] | reraise = _unset , |
||
t.Union[t.Type[RetryError], object] | retry_error_cls = _unset , |
||
t.Union[t.Optional[t.Callable[["RetryCallState"], t.Any]], object] | retry_error_callback = _unset |
||
) |
Copy this object with some parameters changed if needed.
Definition at line 217 of file __init__.py.
References FormatControl.__class__, _InstallRequirementBackedCandidate.__class__, AlreadyInstalledCandidate.__class__, ExtrasCandidate.__class__, OrderedDict.__class__, InfinityType.__class__, NegativeInfinityType.__class__, _IndividualSpecifier.__class__, Distribution.__class__, ParseExpression.__class__, ParamSpec.__class__, _ConcatenateGenericAlias.__class__, _UnpackAlias.__class__, TypeVarTuple.__class__, PoolError.__class__, RequestError.__class__, pip._vendor.tenacity._first_set(), BaseRetrying.after, BaseRetrying.before, BaseRetrying.before_sleep, i, RetryError.reraise(), BaseRetrying.reraise, BaseRetrying.retry, BaseRetrying.retry_error_callback, BaseRetrying.retry_error_cls, RetryAction.sleep, BaseRetrying.sleep, AsyncRetrying.sleep, TornadoRetrying.sleep, Retry.sleep(), Progress.stop(), _RefreshThread.stop(), Live.stop(), Status.stop(), BaseRetrying.stop, and BaseRetrying.wait.
Referenced by ParseResults.__add__(), Text.__add__(), ParserElement.__call__(), ParseResults.__radd__(), ParserElement._setResultsName(), ParseResults.deepcopy(), Text.divide(), ConsoleOptions.reset_height(), Text.split(), ConsoleOptions.update(), ConsoleOptions.update_dimensions(), ConsoleOptions.update_height(), ConsoleOptions.update_width(), Text.with_indent_guides(), and BaseRetrying.wraps().
Definition at line 307 of file __init__.py.
References BaseRetrying.after, BaseRetrying.before, BaseRetrying.before_sleep, i, RetryError.reraise(), BaseRetrying.reraise, BaseRetrying.retry, BaseRetrying.retry_error_callback, BaseRetrying.retry_error_cls, BaseRetrying.statistics(), Progress.stop(), _RefreshThread.stop(), Live.stop(), Status.stop(), BaseRetrying.stop, and BaseRetrying.wait.
Referenced by AsyncRetrying.__anext__(), TornadoRetrying.__call__(), Retrying.__call__(), AsyncRetrying.__call__(), and BaseRetrying.__iter__().
t.Dict[str, t.Any] statistics | ( | self | ) |
Return a dictionary of runtime statistics. This dictionary will be empty when the controller has never been ran. When it is running or has ran previously it should have (but may not) have useful and/or informational keys and values when running is underway and/or completed. .. warning:: The keys in this dictionary **should** be some what stable (not changing), but there existence **may** change between major releases as new statistics are gathered or removed so before accessing keys ensure that they actually exist and handle when they do not. .. note:: The values in this dictionary are local to the thread running call (so if multiple threads share the same retrying object - either directly or indirectly) they will each have there own view of statistics they have collected (in the future we may provide a way to aggregate the various statistics from each thread).
Definition at line 256 of file __init__.py.
References BaseRetrying._local, and i.
Referenced by BaseRetrying.begin(), and BaseRetrying.iter().
Wrap a function for retrying. :param f: A function to wraps for retrying.
Reimplemented in AsyncRetrying.
Definition at line 283 of file __init__.py.
References ChainMap.copy(), OrderedDict.copy(), ParserElement.copy(), ParseExpression.copy(), Forward.copy(), ParseResults.copy(), pyparsing_test.reset_pyparsing_context.copy(), RequestsCookieJar.copy(), PreparedRequest.copy(), CaseInsensitiveDict.copy(), DirectedGraph.copy(), ConsoleOptions.copy(), Style.copy(), Column.copy(), Text.copy(), HTTPHeaderDict.copy(), BaseRetrying.copy(), and i.
|
protected |
Definition at line 213 of file __init__.py.
Referenced by BaseRetrying.statistics().
after |
Definition at line 210 of file __init__.py.
Referenced by BaseRetrying.copy(), and BaseRetrying.iter().
before |
Definition at line 209 of file __init__.py.
Referenced by BaseRetrying.copy(), and BaseRetrying.iter().
before_sleep |
Definition at line 211 of file __init__.py.
Referenced by BaseRetrying.copy(), and BaseRetrying.iter().
reraise |
Definition at line 212 of file __init__.py.
Referenced by BaseRetrying.copy(), and BaseRetrying.iter().
retry |
Definition at line 208 of file __init__.py.
Referenced by BaseRetrying.copy(), and BaseRetrying.iter().
retry_error_callback |
Definition at line 215 of file __init__.py.
Referenced by BaseRetrying.copy(), and BaseRetrying.iter().
retry_error_cls |
Definition at line 214 of file __init__.py.
Referenced by BaseRetrying.copy(), and BaseRetrying.iter().
sleep |
Definition at line 205 of file __init__.py.
Referenced by AsyncRetrying.__anext__(), TornadoRetrying.__call__(), Retrying.__call__(), AsyncRetrying.__call__(), BaseRetrying.__iter__(), and BaseRetrying.copy().
stop |
Definition at line 206 of file __init__.py.
Referenced by Live.__exit__(), Progress.__exit__(), Status.__exit__(), BaseRetrying.copy(), and BaseRetrying.iter().
wait |
Definition at line 207 of file __init__.py.
Referenced by BaseRetrying.copy(), and BaseRetrying.iter().