Skip to main content

A TUI interface for the CLOC code analysis tool, using the Textual framework.

Project description

CLOCTUI

badge badge badge badge Framework: Textual

CLOCTUI is a terminal user interface (TUI) for the CLOC code analysis tool, built using the Textual framework. It provides an interactive way to analyze code metrics directly from the terminal.

CLOCTUI runs CLOC under the hood and then displays the results in an interactive Textual table. It supports various features such as sorting and filtering the results, making it easier to analyze codebases.

How To Use

CLOCTUI is designed to be run from the command line using either pipx or uvx. It requires Python 3.10 or higher.

Enter the path you want to scan as the only argument:

uvx cloctui src
pipx run cloctui src

Both the above commands will run CLOC on the src directory and display the results.

A dot would likewise scan the current directory:

uvx cloctui .

Use the --help option for an explanation in your terminal.

Questions, issues, suggestions?

Feel free to post an issue.

Video

Coming soon!

Credits and License

CLOCTUI is developed by Edward Jazzhands

A core class for this project was copied from Stefano Stone: https://github.com/USIREVEAL/pycloc

It was modified by Edward Jazzhands (added all type hints and improved docstrings).

Both CLOCTUI and pycloc are licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloctui-0.2.0.tar.gz (78.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cloctui-0.2.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file cloctui-0.2.0.tar.gz.

File metadata

  • Download URL: cloctui-0.2.0.tar.gz
  • Upload date:
  • Size: 78.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.0

File hashes

Hashes for cloctui-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ab059a8274d337738be052d29182fea399504482a8e8bd5dcdc051736e4fff6d
MD5 75b5f770a3a7d302dcacca7bf58bdf9e
BLAKE2b-256 11d31eec9e3ffd3e7a506e19cf229cc63ef8f4df878533b44fe319ae01a899b0

See more details on using hashes here.

File details

Details for the file cloctui-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: cloctui-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.0

File hashes

Hashes for cloctui-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e2bb4cddd92988b7a2fd3b3c4d1fc9b69b49b6ff49c42703554564a0cd6b1f89
MD5 24e1a1d448e486f2e1aa03f65669ff6e
BLAKE2b-256 f299ad4e39259c908adaf281f902bff65d354333378b484c98ae1c671bb7a43d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page