Skip to main content

linecounter for files

Project description


linecounter is a tool written in python, you can count how many lines you have in your files. This tool may be useful for developers who want to count how many lines of code they have in their projects. Because of linecounter isn’t restricted for just code files it can be used in many areas which needs line counting.


  • Line counting for given file/files
  • Line counting for list of files in given directory
  • Line counting for list of files in given directory recursively
  • Line counting for list of files in given directory with filtering file extensions
  • Line counting without empty lines


Find the latest version on github:

Feel free to fork and contribute!


The easiest way to install is with pip:

pip install linecounter

Or manually:

python install



linecounter -fd [-r] path1 [path2 ...] [--filter ext1 [ext2 ...]]


-f         Run line-counter with file paths
-d         Run line-counter with directory paths
-r         Search directories recursively, can be used if '-d' is set
--filter   Count lines for files which extension is ext1, ext2 ...,
           can be used if '-d' is set
--help     Show this message
--version  Show version info
--noempty  Count non-empty lines


I’m Muhammet Halit Karakis from Istanbul, Turkiye. You can contact me by email halit (at) halitkarakis com tr

Project details

Download files

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

Files for linecounter, version 1.3.2
Filename, size File type Python version Upload date Hashes
Filename, size linecounter-1.3.2.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page