Count lines of Python code in directories
Project description
Countsy
This is countsy. Currently you can return the amount of lines for all Python-Files of an entire dictionary. Via flags you have the option to ignore comments, blank lines or both. I would like to work on optimization, although for pure python projects this is faster than cloc work on implementing more programming languages.
Usage
Installation
pip install countsy
Usage
countsy FOLDER_TO_PATH
Sample Output
countsy
>>> Total lines of Python-Code in folder: 86
Flags
call countsy for help
folder_path: positional, right after countsy, optional with default set to current directory
--tqdm: includes progress bar, default is false
--ignore-comments: ignores all comments (single and multiline)
--ignore-blank-lines: ignores all blank lines
--ignore: ignores both comments and blank lines
Disclaimer
The --ignore-blank-lines flag does not ignore blank lines inside of multiline comments. Both ignore flags are best used together (-> --ignore).
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 countsy-1.0.6.tar.gz.
File metadata
- Download URL: countsy-1.0.6.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82a07ecdd725449461b33254b9552515234c4cb5156f8534cd23496473369714
|
|
| MD5 |
256695b6a2cdc90ec1bfd4838d550ec4
|
|
| BLAKE2b-256 |
3ad485ea84bfcb9685727ce05173c9c8535540dac58e03099211902079bb52c4
|
File details
Details for the file countsy-1.0.6-py3-none-any.whl.
File metadata
- Download URL: countsy-1.0.6-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96e45a211fe01bea7f1216a3548fbeaadd3cf7e5b81b3d90a8c31e6d35a1d034
|
|
| MD5 |
6fd19ffeb14815b8681466c17fe50449
|
|
| BLAKE2b-256 |
26530ec8c3e2df4bb8005677864f4e05cbe5b1d651e4f873ac88cc31e885a3c0
|