Initial commit: Email alerts application

This commit is contained in:
Iyeoluwa Akinrinola
2025-07-25 11:31:36 +01:00
commit adfb625ae9
6322 changed files with 2882826 additions and 0 deletions
@@ -0,0 +1,22 @@
from typing import Any, Optional
class Response(object):
def __init__(
self,
status_code: int,
text: str,
headers: Optional[Any] = None,
):
self.content = text
self.headers = headers
self.cached = False
self.status_code = status_code
self.ok = self.status_code < 400
@property
def text(self) -> str:
return self.content
def __repr__(self) -> str:
return "HTTP {} {}".format(self.status_code, self.content)