Metadata-Version: 2.4
Name: codecount-cli
Version: 0.1.0
Summary: Count lines of code, comments, and blanks by language
Author-email: Marcus <marcus.builds.things@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/marcusbuildsthings-droid/codecount
Keywords: loc,lines-of-code,cloc,code-count,cli,developer-tools
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Utilities
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click>=8.0
Dynamic: license-file

# codecount-cli

Count lines of code, comments, and blanks by language. Like `cloc` but simpler, with `--json` output for automation.

## Install

```bash
pip install codecount-cli
```

## Usage

```bash
codecount .                    # Count all files in current directory
codecount src/                 # Specific directory
codecount file.py              # Single file
codecount . --top 10           # Top 10 languages
codecount . -l python          # Filter by language
codecount . --json             # JSON output
codecount . --csv              # CSV output
codecount . --by-file          # Per-file breakdown
codecount --languages          # List supported languages
```

## Example Output

```
----------------------------------------------------
Language               Files     Code  Comment    Blank
----------------------------------------------------
Python                     4      312       45       67
YAML                       2       28        3        8
TOML                       1       18        0        4
Markdown                   1       42        0       12
----------------------------------------------------
Total                      8      400       48       91
----------------------------------------------------
```

## Features

- **50+ languages** detected by file extension
- **Comment detection** for Python, JS/TS, C/C++, Java, Go, Rust, Ruby, and more
- **Auto-ignores** .git, node_modules, __pycache__, dist, build, etc.
- **Respects .gitignore** when inside a git repo
- **JSON and CSV output** for scripting and automation
- **Per-file breakdown** with `--by-file`
- **Zero dependencies** beyond Click

## License

MIT
