xfsortorder¶
XamFlow sortorder strings.
This module implements utilities for handling the strings used by XamFlow for sorting e.g. jobs.
- xfsortorder.after_last(last: str) str ¶
Create a sort order string after the sort order string of the last item.
- xfsortorder.before_first(first: str) str ¶
Create a sort order string before the sort order string of the first item.
- xfsortorder.between(s1: str, s2: str) str ¶
Create a sort order string between sort order strings of two other items.
- xfsortorder.common_prefix(s1: str, s2: str) str ¶
The common prefix of two strings.
- xfsortorder.get_new_source_job_sort_order(existing_sort_orders: List[str]) str ¶
Get a sort order for a new source job.
- xfsortorder.get_new_source_job_sort_orders(existing_sort_orders: List[str], n: int) List[str] ¶
Get many sort order strings for new source jobs.
- xfsortorder.get_new_source_job_sort_orders_directly_after(reference_sort_order: str, existing_sort_orders: List[str], n: int) List[str] ¶
Get many sort order strings for new source jobs.
- xfsortorder.many_after_last(last: str, n: int) List[str] ¶
Create sort order strings after the sort order string of the last item.
- xfsortorder.many_after_prefix(prefix: str, n: int) List[str] ¶
Create sort order strings with the given prefix.
- xfsortorder.many_between(s1: str, s2: str, n: int) List[str] ¶
Create sort order strings between sort order strings of two other items.
- xfsortorder.single() str ¶
Create a sort order string suitable for a single item.