A small CLI tool that will tell you the number of lines that a file or directory has.
Project description
loc-lines
Lines Of Code is a command-line tool that tells you how many lines a file or children of a directory have.
Installation
pip install loc-lines
Usage
To read a file, simply use the command:
py -m loc \path\to\file
Want to include whitespace in the response?:
py -m loc \path\to\file -w
To read a directory filled with files do:
py -m loc \path\to\dir .txt .py
The trailing file extensions specify which extensions to include in your response. Ex. If a directory has three files, a .txt, a .py, and a .java, lines will only be read from the first two.
To search all sub directory's:
py -m loc \path\to\dir -s .txt .py
Specify the option -s to search all sub directory's of the selected directory
Project details
Release history Release notifications | RSS feed
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 loc_lines-0.1.2.tar.gz.
File metadata
- Download URL: loc_lines-0.1.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fbc8f002fc76c4eef2a0e46ad4abf05d0782a661b49f7b01137ec764469797e
|
|
| MD5 |
403e0f480420b2b050f799431fb6aa27
|
|
| BLAKE2b-256 |
66d7b2a74fec70803c183a5d94b84c06dd488fcfbc4c041e27707056cf57b504
|
File details
Details for the file loc_lines-0.1.2-py3-none-any.whl.
File metadata
- Download URL: loc_lines-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
164e143941f096bf169938d5bb1452e50d5e86448446540664426f8a604bb980
|
|
| MD5 |
0f12d4212f3853c4ff95d57dc34f1e6e
|
|
| BLAKE2b-256 |
bbcda06f9231b99457b20d87083755cd9414997952ef3a0d7850bb684299b0bd
|