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
Release files for linecounter-python 2.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| linecounter_python-2.1.3.tar.gz | 6.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| linecounter_python-2.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.5 kB
Release files / linecounter_python-2.1.3.tar.gz
| Download URL | linecounter_python-2.1.3.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce217f2c7d23a42537448989b77c0d62cddf09852de4759a5eee9b35fe64e31a
|
|
BLAKE2b-256 checksum How to use checksums |
461ce6b662c9ac690a2ee23032a9eb885b4a5d933e53d9e4c4152f69cd4b042a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / linecounter_python-2.1.3-py3-none-any.whl
| Download URL | linecounter_python-2.1.3-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72fb6878578511288172cfad4f7f5dcccc5616aa7fc39672d37e3b951c743c08
|
|
BLAKE2b-256 checksum How to use checksums |
62cb27891b1c13df69dc70e7b3b8d12943507ca24ddd2efb2810d53d3249e3e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|