what.py is a Python program written by me which is used to gauge the size of a source base.
It is meant to be run the first time you encounter a new source base. It recursively descends a file tree and reports several statistics of interest to code spelunkers. These include:
The code that determines what computer language a file contains is flexible in how it does its checking. Right now this is done based on the file's extension, but can be extended to call an interpreter to determine if the file is valid code of a particular type.
There are four arguments that can be used:
-w or --where argument tells the program that for each type of code it is to list all the directories that contain that type of code.
-e or --exclude argument excludes certain sub-directories from the search. The exclude argument can be used several times on the same line like this:
what.py -e HTML -e DoxyFiles
-l or --language option says to only find one language, and not all of them.
-p or --pretty option allows the user to select HTML or LaTeX table output format instead of plain text.
The program automatically ignores any file in a CVS diretory.
License: Open Source (BSD)