Skip to main content

Linecounter

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.

Features

  • 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

Source

Find the latest version on github: https://github.com/halitkarakis/line-counter

Feel free to fork and contribute!

Installation

The easiest way to install is with pip:

pip install linecounter

Or manually:

python setup.py install

Usage

Usage:

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

options:

-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

Author

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

Release files for linecounter 1.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for linecounter 1.3.2
File Size Uploaded
linecounter-1.3.2.tar.gz 3.3 kB Details

Release files / linecounter-1.3.2.tar.gz

Download URL linecounter-1.3.2.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e44448d2f75de87f1cc02a1dfba11708eab80d70fbbed35184c1f5385603f813
BLAKE2b-256 checksum
How to use checksums
ea24b2ba4592b29d267ff37e4e5902a180e66eeb4cdac67bdf0f7e4f6c77bff4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.3.2 This release

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page