servicex.utils.dataset_as_name#
- servicex.utils.dataset_as_name(sample_name: Optional[Union[str, Iterable[str]]], title: Optional[str] = None, max_len: Optional[int] = 20) str [source]#
Returns a name that is suitable for a progress bar
- Args:
sample_name (str): The sample info title (Optional[str]): The title specified with the request max_len (Optional[int]): The maximum length of the title. None means no length limit.
- Returns:
str: Name to use for a progress bar