Repository navigation
Releases: puya/token-counter-cli
Releases · puya/token-counter-cli
Release list
Token Counter CLI v0.1.6
📦 Token Counter CLI v0.1.6
🚀 What's Changed
- chore: bump version to 0.1.6
- chore: commit uv.lock for reproducible builds
- feat: add -v/--version flag and -h alias for help
Full Changelog: v0.1.5...v0.1.6
📦 Installation
pip install token-counter-cli🔗 Links
- PyPI Package: https://pypi.org/project/token-counter-cli/0.1.6/
- Documentation: See README.md for full usage guide
Token Counter CLI v0.1.5
📦 Token Counter CLI v0.1.5
🚀 What's Changed
- fix: prevent output cropping for long file paths
- 📚 Document GitHub Actions automation workflow
Full Changelog: v0.1.4...v0.1.5
📦 Installation
pip install token-counter-cli🔗 Links
- PyPI Package: https://pypi.org/project/token-counter-cli/0.1.5/
- Documentation: See README.md for full usage guide
Token Counter CLI v0.1.4
📦 Token Counter CLI v0.1.4
🚀 What's Changed
- Bump version to 0.1.4
- 🔧 Fix GitHub Actions workflow
Full Changelog: v0.1.3...v0.1.4
📦 Installation
pip install token-counter-cli🔗 Links
- PyPI Package: https://pypi.org/project/token-counter-cli/0.1.4/
- Documentation: See README.md for full usage guide
Token Counter CLI v0.1.3
📦 Token Counter CLI v0.1.3
🚀 What's Changed
- Bump version to 0.1.3
- 🚀 Add automated release system
Full Changelog: v0.1.2...v0.1.3
📦 Installation
pip install token-counter-cli🔗 Links
- PyPI Package: https://pypi.org/project/token-counter-cli/0.1.3/
- Documentation: See README.md for full usage guide
Token Counter CLI v0.1.2
🔧 Token Counter CLI v0.1.2
✨ What's Changed
- Python 3.10+ Requirement: Updated minimum Python version from 3.9 to 3.10
- Simplified Classifiers: Cleaned up redundant Python version classifiers in package metadata
- Modern Python Features: Now supports pattern matching, improved type hints, and better performance
📦 Installation
pip install token-counter-cli🔗 Links
- PyPI Package: https://pypi.org/project/token-counter-cli/0.1.2/
- Documentation: See README.md for full usage guide
Full Changelog: v0.1.1...v0.1.2
Token Counter CLI v0.1.1
🔧 Token Counter CLI v0.1.1
✨ What's Changed
- Repository Alignment: Updated all GitHub URLs to match the renamed repository (token-counter-cli)
- Metadata Updates: Synchronized package metadata with the new repository name
📦 Installation
pip install token-counter-cli🔗 Links
- PyPI Package: https://pypi.org/project/token-counter-cli/0.1.1/
- Documentation: See README.md for full usage guide
Full Changelog: v0.1.0...v0.1.1
Token Counter CLI v0.1.0
🎉 Token Counter CLI v0.1.0
A fast, user-friendly CLI tool for counting tokens in text files using tiktoken, with LLM context limit comparison and rich formatting.
✨ Features
- Fast tokenization using OpenAI's tiktoken library
- Rich progress bars for large files
- LLM context limit comparison with latest 2025 models from all major providers
- Beautiful color-coded output with provider grouping and readable number formatting
- Flexible file handling with wildcard discovery and recursive scanning
- Multiple encoding support with interactive selection
- Comprehensive configuration via JSON files
📦 Installation
pip install token-counter-cli🚀 Quick Start
# Count tokens in a file
token-counter my_document.txt
# Check against LLM limits with beautiful output
token-counter my_document.txt --check-limits
# Process directory recursively with auto-discovery
token-counter my_project/ --recursive --add-extensions "*"
# Interactive encoding selection
token-counter my_file.txt --select-encoding🌈 What's New in v0.1.0
- Enhanced color system: Green (≤80%), yellow (80-100%), red (>100%) usage indicators
- Provider grouping: LLM limits organized by OpenAI, Anthropic, Google, Meta, xAI, Mistral, Cohere
- Readable numbers: Comma separators and K/M notation (e.g., "1.2M tokens")
- Improved formatting: "122K of 1M tokens" with color-coded context limits
- Latest LLM models: Updated with 2025 models including GPT-4.1, Claude 4, Gemini 2.5, Llama 4
📚 Links
- PyPI Package: https://pypi.org/project/token-counter-cli/
- Documentation: See README.md for full usage guide
- Issues & Features: https://github.com/puya/token-counter/issues
Enjoy counting tokens! 🚀