Skip to main content

Line Counter

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

Installation

Using uv (recommended)

install globally

uv tool install linecounter-python

or run temporarily to check out:

uvx linecounter-python [OPTIONS]

Usage

linec [OPTIONS]

Options:

--target              -t      <directory>  Directory to analyze [default: .]
--no-default          -a                   Discard default list of globs [default: True]
--allow-hidden        -A                   Allow hidden files and directories (.)
--no-gitignore        -g                   Skip using rules from .gitignore [default: True]
--no-recurse          -r                   do not recurse into subdirectories [default: True]
--ignore              -i      <str>        Additional patterns to ignore (e.g. -i "*.log")
--install-completion                       Install completion for the current shell.
--show-completion                          Show completion for the current shell, to copy it or
                                           customize the installation.
--help                                     Show this message and exit

Example:

linec -gt . -i "*.lock"

[!NOTE] -t . is completely useless, not specifying target defaults to .

produces

Summary for: /home/.../linecounter-python

.py   :      255 lines
.md   :       57 lines
.toml :       17 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.1.2.tar.gz (6.3 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.1.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: linecounter_python-2.1.2.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for linecounter_python-2.1.2.tar.gz
Algorithm Hash digest
SHA256 66434c736a08abc19fc075ff0e092641cbdceac8b3849807eabdea8a96ba3932
MD5 8e5ad1db03189697e079c9a56b78e697
BLAKE2b-256 9e9ede7d3c9ce72943ea737c7f87490166a8b252e09320461c21baa3efc48dec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: linecounter_python-2.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for linecounter_python-2.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 88ed58f2fcdb7b935db468a4b31396a24f07aac1a2d77d96929a54292de07f39
MD5 1138e4dbad87886dfc1096e2e3de14f8
BLAKE2b-256 6c5d034f3d283050c30d81b372d9733cff2f9284d8ff5c048671b7de9a294dde

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