cmdtools.utils¶
cmdtools.utils.string¶
- class cmdtools.utils.string.Iter(text: str)¶
Bases:
ABCbase string iterator class.
- Parameters:
text (str) – The string to iterate.
- class cmdtools.utils.string.PrefixChecker(text: str, prefix: str)¶
Bases:
IterChecks if prefix is valid.
- Parameters:
text (str) – The string to check
prefix (str) – The prefix.
- is_valid: bool¶
- property strip_prefix¶
removes prefix from the original string.
- cmdtools.utils.string.splitargs(text: str) List[str]¶
splits string by space and quotes.
- Parameters:
text (str) – The string to split.