Sort Sort ¶ Sort() -> None Used for sorting languages. Examples¶ >>> from pytokei import Sort >>> sort_method = Sort("Lines") >>> sort_method Sort(Lines) References¶ tokei reference from_str staticmethod ¶ from_str(s: str) -> Sort | ValueError Another instantiation method from the name of the method. Examples¶ >>> from pytokei import Sort >>> sort_method = pytokei.Sort.from_str("lines") >>> sort_method Sort(Lines) sort = pytokei.Sort.from_str("lines") sort_types ¶ sort_types() -> list[str] Helper function to obtain each variant of the Sort enum as a str. Examples¶ >>> from pytokei import sort_types >>> sort_types() ['Blanks', 'Comments', 'Code', 'Files', 'Lines']