A Python tool that counts lines, characters, and files in code projects with an interactive terminal interface.
- Counts code files, lines, and characters for different project types
- Supports C++, TypeScript, Python, JavaScript, Java, C#, Go, and Rust projects
- Interactive menu with arrow key navigation
- Smart filtering (skips build directories, cache folders, etc.)
- Run the program:
python main.py
- Or specify the source directory directly:
python main.py --src C:/path/to/project_directory/src/
- Enter the number corresponding to your project type
- Press Enter to confirm selection
- If no
--src
provided, paste your project directory path when prompted - View results
- Python 3.6+
- Works on Windows, macOS, and Linux
==================================================
PROJECT STATISTICS
==================================================
Project type: Python Project
File extensions: .py
Code characters: 15,432 characters
Code lines: 542 lines
Code files: 23 files
==================================================
Average lines per file: 23.6
Average characters per line: 28.5
Project Type | File Extensions |
---|---|
C++ | .h , .hpp , .cpp , .cc , .cxx |
TypeScript | .ts , .tsx |
Python | .py |
JavaScript | .js , .jsx |
Java | .java |
C# | .cs |
Go | .go |
Rust | .rs |
Tranquil Software; forever free. Feel free to use, modify, and distribute.