refactor!: change the entire purpose of this script
This commit is contained in:
parent
217e176975
commit
71d1050adb
20 changed files with 1124 additions and 872 deletions
16
src/email_providers/base.py
Normal file
16
src/email_providers/base.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
from abc import ABC, abstractmethod
|
||||
|
||||
from playwright.async_api import BrowserContext
|
||||
|
||||
|
||||
class BaseProvider(ABC):
|
||||
def __init__(self, browser_session: BrowserContext):
|
||||
self.browser_session = browser_session
|
||||
|
||||
@abstractmethod
|
||||
async def get_new_email(self) -> str:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
async def get_latest_message(self, email: str) -> str | None:
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue