]> git.openstreetmap.org Git - nominatim.git/blob - nominatim/tools/special_phrases/sp_loader.py
Refactoring loading of external special phrases and importation process by introducin...
[nominatim.git] / nominatim / tools / special_phrases / sp_loader.py
1 """
2     Module containing the SPLoader class.
3 """
4 from abc import ABC, abstractmethod
5
6 class SPLoader(ABC):
7     """
8         Base class for special phrases loaders.
9         Handle the loading of special phrases from external sources.
10     """
11     def __iter__(self):
12         return self
13
14     @abstractmethod
15     def __next__(self):
16         pass