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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file linecounter_python-2.1.3.tar.gz.
File metadata
- Download URL: linecounter_python-2.1.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce217f2c7d23a42537448989b77c0d62cddf09852de4759a5eee9b35fe64e31a
|
|
| MD5 |
e1672df97701e7da1ccf7f9d29e66e5e
|
|
| BLAKE2b-256 |
461ce6b662c9ac690a2ee23032a9eb885b4a5d933e53d9e4c4152f69cd4b042a
|
File details
Details for the file linecounter_python-2.1.3-py3-none-any.whl.
File metadata
- Download URL: linecounter_python-2.1.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72fb6878578511288172cfad4f7f5dcccc5616aa7fc39672d37e3b951c743c08
|
|
| MD5 |
8d08233f48ebe8241c736cf7a5218388
|
|
| BLAKE2b-256 |
62cb27891b1c13df69dc70e7b3b8d12943507ca24ddd2efb2810d53d3249e3e7
|