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

Token Counter Python Packages

Python packages with the GitHub topic token-counter. Sorted by monthly downloads, with stars and forks.
abhijitgunjal
llm-token-guard

Track LLM token usage, enforce rate limit & budget policies, and trigger alerts across OpenAI, Groq, OpenRouter, and AWS Bedrock.

525 20 2
CAOShurong
contextcost

Measure how many tokens an AI agent pays to read your repo, and verify that cuts actually save tokens.

498 0 0
unitythemaker
tokdu

tokdu (Token Disk Usage) is a terminal-based utility that helps you analyze and visualize token usage in your codebase. Similar to the classic du (disk usage) command, tokdu shows you how many tokens your files and directories consume, which is essential when working with Large Language Models (LLMs) that have token limits.

131 7 0
MukundaKatta
agentfit-py

Python port of @mukundakatta/agentfit: fit your messages into the LLM context window

110 0 0
arian24b
aitc

CLI that counts tokens in text, files or stdin with tiktoken and estimates input cost on GPT, Claude and Gemini models; compares two files and can use live OpenRouter prices.

101 0 0
lalPratheesh
context-clipper

✂️ Lightweight, framework-agnostic Python library for intelligent LLM context window management and memory heap packing. Zero dependencies.

87 0 0
thisisiron
vt-calc

🧮 Calculator for vision tokens in VLMs.

86 1 0
jmuncor
tokentap

Intercept LLM API traffic and visualize token usage in a real-time terminal dashboard. Track costs, debug prompts, and monitor context window usage across your AI development sessions.

85 811 39
YaronKoresh
pakem

pakem is a repository packaging system designed to convert source trees into portable artifacts for analysis, indexing, sharing, and restoration workflows.

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