Terminal UI for the CLOC code analysis tool with interactive tables and sorting
CLOCTUI is a terminal user interface wrapper for the CLOC (Count Lines of Code) command line tool, built with the Textual framework. It executes CLOC under the hood and presents the code analysis results in an interactive table format instead of static text output.
The tool provides three grouping modes: by language, by directory, or showing all individual files. Users can sort any column by clicking table headers or using keyboard shortcuts. Results are displayed in either inline mode (default) or fullscreen mode using the -f flag.
CLOCTUI requires Python 3.10+ and the CLOC tool to be installed on the system. It's designed for developers who frequently analyze codebases and prefer interactive table navigation over static CLOC output, particularly useful for large projects where visual organization improves result comprehension.
# via UV
uv tool install cloctui
# via PipX
pipx install cloctui
# via UV (test)
uvx cloctui src