6 # This module is commonly used by others in here and should avoid
7 # taking any unnecessary dependencies back on them.
9 logger = logging.getLogger(__name__)
13 def get(name: str) -> int:
16 self.my_unique_id = id_generator.get("student_id")
18 if name not in generators:
19 generators[name] = itertools.count()
20 x = next(generators[name])
21 logger.debug(f"Generated next id {x}")