Skip to content

Releases: puya/token-counter-cli

Token Counter CLI v0.1.6

Choose a tag to compare

@github-actions github-actions released this 19 Nov 23:09
bd162ab

📦 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

Token Counter CLI v0.1.5

Choose a tag to compare

@github-actions github-actions released this 19 Nov 22:58
c5bd380

📦 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

Token Counter CLI v0.1.4

Choose a tag to compare

@github-actions github-actions released this 01 Jul 20:03
cce6ad7

📦 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

Token Counter CLI v0.1.3

Choose a tag to compare

@github-actions github-actions released this 01 Jul 20:00
53ed38d

📦 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

Token Counter CLI v0.1.2

Choose a tag to compare

@puya puya released this 01 Jul 19:55
b12b854

🔧 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

Full Changelog: v0.1.1...v0.1.2

Token Counter CLI v0.1.1

Choose a tag to compare

@puya puya released this 01 Jul 19:54
b500e42

🔧 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

Full Changelog: v0.1.0...v0.1.1

Token Counter CLI v0.1.0

Choose a tag to compare

@puya puya released this 01 Jul 18:36

🎉 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

Enjoy counting tokens! 🚀