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-1.1.0.tar.gz (2.5 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-1.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for linecounter_python-1.1.0.tar.gz
Algorithm Hash digest
SHA256 95c61d3b5a35f02de93eb108ae64da36d8cb8206ad56e097d55fced86c288ed1
MD5 cfa8246490c690bf0b86c16995d9bf3e
BLAKE2b-256 e43caef888185068c12095fdbd0d59e5cee40b1feb23997b504aa5e326136e5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for linecounter_python-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a18ceb2a125655e921e72dddd379c79348c4a4d8bdd9fc97b3255209cb0fdc80
MD5 675c0ccca87051f038ae88c42c73467f
BLAKE2b-256 8102b794bc3f246fb029121fd4bddc05ff9b3b3fb621ca9a86ff66ed7c40b015

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