Count lines of Python code in directories
Project description
Countsy 📏
A fast, customizable line counter for Python projects (with plans to expand!)
Features ✨
- Count lines in Python files (with more languages coming soon!)
- Flexible filtering: Ignore comments, blank lines, or both
- Progress bars (optional) for large directories
- Faster than
clocfor pure Python projects
Installation ⚡
pip install countsy
Usage 🚀
Basic Command
countsy /path/to/folder # Default: current directory
Sample Output
Total Python-Files: 1129
Total lines of Python-Code in folder: 376045
Flags 🎛️
| Flag | Description | Default |
|---|---|---|
--tqdm |
Show progress bar | False |
--ignore-comments |
Exclude single/multi-line comments | False |
--ignore-blank-lines |
Exclude empty lines | False |
--ignore |
Exclude both comments and blank lines | False |
Example
countsy /path/to/folder --ignore --tqdm
Disclaimer⚠️
tqdmis required for progress bars
Missing Modules? 🔧
# Install required dependencies
pip install tqdm
Roadmap 🗺️
- Support for more languages (JavaScript, Java, etc.)
- Optimize speed for large codebases
- Optional dependencies
Contributing 🤝
PRs and feature requests are welcome!
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
countsy-1.0.7.tar.gz
(4.6 kB
view details)
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.7.tar.gz.
File metadata
- Download URL: countsy-1.0.7.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1cf0e0d36ae7d96ce54614a3936954e3e73a0cd90eb7f8c3e9bf42be2e492429
|
|
| MD5 |
1a6d84037cda7a9cfa80a54d0ec2dc35
|
|
| BLAKE2b-256 |
121400b09b6d25c53dfaefe83910c136fc0cfe8f0a72f7d2ec5425b486385eb0
|
File details
Details for the file countsy-1.0.7-py3-none-any.whl.
File metadata
- Download URL: countsy-1.0.7-py3-none-any.whl
- Upload date:
- Size: 4.5 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 |
16d5a044922817ea7b77ab61e99d4e753a3077ba4444f695c0f4f7c384ab9011
|
|
| MD5 |
ce8372624bd460f2780a9c5bbba1e930
|
|
| BLAKE2b-256 |
28b89ad805da23924b46bc88716ef678dd8655dc21510e7fd0e7bce591a1bdeb
|