Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 2.1.3 instead.

Line Counter

This is a short utility script for counting lines in each file type in a directory and subdirectories

Installation

Using uv

  1. Install uv (if not already installed)

  2. clone this repository

    git clone git@github.com:opplaypro/linecounter.git
    cd linecounter
    
  3. install globally with uv

    uv tool install .
    
  4. run script

    linec
    
  5. add extra arguments:

    • [path]: path do directory to count lines from (by default is current working directory - .)
    • -a: ignore default exclusion list
    • -A: ignore default exclusion list and include hidden (e.g. .git) directories in search (not recommended)
    • -i [dir_1] [dir_2]: include own directories and files to ignore (glob search)

Example usage:

linec -i build *.egg-info dist
Click to expand output
Summary for: /home/.../linecounter

.py   :      110 lines
.md   :       53 lines
.toml :       14 lines
.lock :        8 lines

Download files

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

Source Distribution

linecounter_python-2.0.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

linecounter_python-2.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file linecounter_python-2.0.0.tar.gz.

File metadata

  • Download URL: linecounter_python-2.0.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.2

File hashes

Hashes for linecounter_python-2.0.0.tar.gz
Algorithm Hash digest
SHA256 54866c2dcd3c60ec0c8a07f537013a0cbc9507715d1796b20b63a59b7331b631
MD5 bc10878699b56a1fdb073aa1bce4be36
BLAKE2b-256 146c2ccd5d2f7012a3aff2d1336776694ebcc2c0667b073bcbd0dd54543a4e03

See more details on using hashes here.

File details

Details for the file linecounter_python-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for linecounter_python-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 888e8f9b8df79bec4a4901ce532ebf890a7ffe69d135092da902cda459f06cdf
MD5 46f5736756169b8ca393c6e387d141b0
BLAKE2b-256 ec1ee80aadca736c6eca8f185054cb81b4fc93e8c53ee00111f1a0e46493c00d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page