semlib.map
map
async
map[T, U: BaseModel](
iterable: Iterable[T],
/,
template: str | Callable[[T], str],
*,
return_type: type[U],
model: str | None = None,
max_concurrency: int | None = None,
) -> list[U]
Standalone version of map.
Source code in src/semlib/map.py
map_sync
map_sync[T, U: BaseModel](
iterable: Iterable[T],
/,
template: str | Callable[[T], str],
*,
return_type: type[U],
model: str | None = None,
max_concurrency: int | None = None,
) -> list[U]
Standalone synchronous version of map.
Source code in src/semlib/map.py
:::