PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Token Counting Python Packages

Python packages with the GitHub topic token-counting. Sorted by monthly downloads, with stars and forks.
sairintechnologycom
burnlens

Open-source LLM FinOps proxy — track OpenAI, Anthropic (Claude), and Google Gemini costs by feature, team, and customer. Zero code changes. pip install burnlens.

3K 3 0
cendorhq
cendor-core

Production plumbing for LLM apps: context, cost, testing & governance — composable, framework-agnostic Python libraries.

2K 0 0
cendorhq
cendor-acttrace

Production plumbing for LLM apps: context, cost, testing & governance — composable, framework-agnostic Python libraries.

1K 0 0
cendorhq
cendor-tokenguard

Production plumbing for LLM apps: context, cost, testing & governance — composable, framework-agnostic Python libraries.

847 0 0
Mullassery
pytokencalc

Know your LLM costs before you hit send. Count tokens from 20+ providers with 99.9% accuracy. Estimate costs, track usage, optimize spending. No setup required.

603 0 0
cendorhq
cendor-guardrails

Production plumbing for LLM apps: context, cost, testing & governance — composable, framework-agnostic Python libraries.

599 0 0
adam2go
puretiktoken

tiktoken in pure Python: byte-for-byte compatible BPE tokenizer for GPT-4/4o, no Rust extension, zero dependencies

522 0 0
cendorhq
cendor-squeeze

Production plumbing for LLM apps: context, cost, testing & governance — composable, framework-agnostic Python libraries.

474 0 0
cendorhq
cendor-contextkit

Production plumbing for LLM apps: context, cost, testing & governance — composable, framework-agnostic Python libraries.

384 0 0
cendorhq
cendor-cassette

Production plumbing for LLM apps: context, cost, testing & governance — composable, framework-agnostic Python libraries.

383 0 0
cendorhq
cendor-libs

Production plumbing for LLM apps: context, cost, testing & governance — composable, framework-agnostic Python libraries.

302 0 0
Thibault00
runtoken

A blazing-fast BPE tokenizer for LLMs. Drop-in tiktoken replacement, 20-80x faster.

266 3 0
aryanjp1
tokenbudget

Lightweight token tracking, cost management, and budget enforcement for LLM API calls

114 6 1
cendorhq
cendor

Production plumbing for LLM apps: context, cost, testing & governance — composable, framework-agnostic Python libraries.

99 0 0
Wolfe-Jam
slash-tokens

Token Optimization for Context Engineers. 4.8 KB WASM. Sub-millisecond. Zero dependencies.

98 8 0
RLASAF12
context-budget

Claude Code context window budget calculator — know your token cost before you load

71 0 0
mystxcal
filestoai

Turn a local codebase into clean, token-counted context for an LLM. One Rust binary with gitignore-aware selection, clipboard/pipe workflows, and a built-in UI.

64 2 0
stef41
tokonomix

Universal LLM token counting and cost management. Track, compare, and optimize your LLM API spending.

55 1 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology