The Tenacity Library

Описание к видео The Tenacity Library

#mathbyteacademy #python

In this video we explore the Tenacity library that provides a very easy and powerful mechanism to add retry behavior to any piece of code. Very useful in a variety of scenarios such as retrying API calls when they time out or get rate limited, retrying database calls when they fail for some reason, and much more.

Content
=======
00:00 - Introduction
02:35 - SQL Example Setup
12:44 - Basic Retry
14:52 - Retrying based on Exception Types
18:22 - Setting Retry Delays and Limits
27:48 - Viewing Retry Stats
28:37 - Retrying based on Function Return Values
31:15 - Customizing Retry Conditions
41:56 - Direct Retries without Decorators
45:50 - Conclusion


Code for this Video
================
Available in GitHub blog repo: https://github.com/fbaptiste/python-blog
Direct link: https://tinyurl.com/mv9s8485

My Python Courses
=================

Python 3 Fundamentals (introduction to Python)
https://www.udemy.com/course/python3-...

Pydantic V2: Essentials
https://www.udemy.com/course/pydantic...

Python 3 Deep Dive (Part 1 - Functional)
https://www.udemy.com/course/python-3...

Python 3 Deep Dive (Part 2 - Iteration, Generators)
https://www.udemy.com/course/python-3...

Python 3 Deep Dive (Part 3 - Hash Maps)
https://www.udemy.com/course/python-3...

Python 3 Deep Dive (Part 4 - OOP)
https://www.udemy.com/course/python-3...

Комментарии

Информация по комментариям в разработке