python-sloc Counts the Lines of Source Code in a given directory Usage Just open and execute the file. It'll ask for a directory, give it what is needed, and then it'll print out the results you asked for.