SatisfactoryPlusCalculator/factorygame/data/provider.py

17 lines
359 B
Python

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