A Python implementation of the Unix wc command line utility
- Python 100%
|
All checks were successful
Python CI / Build and test (push) Successful in 1m36s
Reviewed-on: #1 Thx! |
||
|---|---|---|
| .forgejo/workflows | ||
| src/wc | ||
| tests | ||
| .gitignore | ||
| .python-version | ||
| AGENTS.md | ||
| LICENSE | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
wc
A Python implementation of the Unix wc command line utility.
Usage
# Run with uv (no install)
uv run wc [file ...]
# Run with python -m (no install)
python -m wc [file ...]
# Or install and run
uv pip install -e .
wc [file ...]
Options
| Flag | Description |
|---|---|
-l |
Print newline counts |
-w |
Print word counts |
-c |
Print byte counts |
-m |
Print character counts |
-L |
Print maximum line length |
Default (no flags): -l -w -c.
Tests
uv run pytest tests/