import abc from sqlalchemy.orm import Session as AlchemySession from .models import Resource class RecipeProvider(abc.ABC): @abc.abstractmethod def search_for_resource(self, session: AlchemySession, search: str) -> tuple[Resource, bool]: pass @abc.abstractmethod def update_resource_recipes(self, session: AlchemySession, resource: Resource): pass