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