tugboat.utils module¶
- tugboat.utils.find_duplicate_names(items: Sequence[NamedModel]) Iterator[tuple[int, str]]¶
Find and yield the indices and names of duplicate items in a sequence.
- tugboat.utils.join_with_and(items: Iterable[Any], *, quote: bool = True, sort: bool = True, fallback_string: str = '(none)') str¶
Join items with “and” as the last joiner. On empty input, returns the fallback string.