This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import List | |
from marshmallow import fields, Schema | |
from sanic_openapi import doc | |
MAP_MARSHMALLOW_IN_OPEN_API = { | |
fields.DateTime: doc.DateTime, | |
fields.Date: doc.Date, | |
fields.Integer: doc.Integer, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from asyncio import sleep as async_sleep | |
from datetime import time | |
import logging | |
from typing import Tuple, Callable | |
def restartable(max_attempts: int = 5, | |
delay: int = 0.5, | |
backoff: int = 2, | |
exceptions: Tuple[Exception] = (Exception,), |