Source code for galaxy.tours._interface

from abc import (
    ABC,
    abstractmethod,
)

from ._schema import (
    TourDetails,
    TourList,
)


[docs]class ToursRegistry(ABC):
[docs] @abstractmethod def get_tours(self) -> TourList: """Return list of tours."""
[docs] @abstractmethod def tour_contents(self, tour_id: str) -> TourDetails: """Return tour contents."""
[docs] @abstractmethod def load_tour(self, tour_id: str) -> TourDetails: """Reload tour and return its contents."""