Project Stats is a simple Python script to count the lines of code in a directory. It's useful for getting a quick overview of your project's size. The script recursively goes through all files in the specified directory and counts non-empty lines of code.
-
Clone the repository:
git clone https://github.com/ilBuso/project-stats.git
-
Change into the
project-stats
directory:cd project-stats
-
Run the script:
python project-stats.py
When you run the script, it will prompt you to enter the path to the directory you want to analyze. It will then display the total lines of code in that directory.
python project-stats.py
Enter the path to the directory: /path/to/your/directory
This project is open for further development. Here are some ideas for future implementations:
- Display breakdown of file types (e.g. C, C++, h, Makefile)
- Implement a feature to ignore certain file types or directories
- Provide an option to save results to a file
Distributed under the MIT License. See LICENSE for more information.