A Python implementation of the Unix wc command line utility
- Python 100%
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| tests | ||
| .gitignore | ||
| .python-version | ||
| LICENSE | ||
| main.py | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
wc
A Python implementation of the Unix wc command line utility.
Usage
# Run directly
python main.py [file ...]
# Or with uv
uv run 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/