Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Tokens Python Packages

Python packages with the GitHub topic tokens. Sorted by monthly downloads, with stars and forks.
miguelgrinberg
flask-httpauth

Simple extension that provides Basic, Digest and Token HTTP authentication for Flask routes

1.3M 1K 237
headroomlabs-ai
headroom-ai

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

418K 81K 6K
BobTheBuidler
ypricemagic

Fetch accurate prices for tokens solely using on-chain data.

41K 79 19
ApeWorX
ape-tokens

Tokens converter plugin for the Ape Framework

27K 11 8
BobTheBuidler
eth-portfolio-temp

Use eth-portfolio to output information about a wallet or collection of wallets in a streamlined, speed-optimized way.

21K 15 6
gawk-dev
mcpgawk

Catches an MCP server that changed after you approved it, and holds the call before your agent runs it. Your inventory stays on your machine.

14K 1 0
inth3shadows
terse-mcp

Shrinks your AI agent's tool output so it burns fewer tokens, without changing what the agent reads. Lossless by default, no decode step.

12K 3 1
phil65
tokonomics

Calculate LLM usage costs from token counts and discover models and pricing across providers

10K 6 1
abhijitbansal
cartoon

Token-optimized output for any CLI — your AI agent reads 12 lines instead of 800, raw log always archived. Adapters for pytest/jest/vitest/ruff/eslint/tsc + a compression ladder for everything else.

8K 1 1
BobTheBuidler
eth-portfolio

Use eth-portfolio to output information about a wallet or collection of wallets in a streamlined, speed-optimized way.

6K 15 6
Elijas
token-throttle

Multi-resource rate limiting for LLM APIs. Reserve tokens before you call, refund what you don't use, stay under the limit across workers.

4K 24 2
behrouzbk
prompt-tokensaver

Count tokens across AI models and get concrete, priced suggestions to cut your prompt costs. Runs offline.

4K 7 2
qmediat
ai-costs

What a block of AI-assisted work cost — real, API-equivalent, vendor quote — from the usage already on disk (Claude Code, Codex CLI, Gemini CLI, Grok Build CLI, your own logs)

4K 0 0
hamidi-dev
opentab-ai

📊 Browse your AI coding spend in the terminal — OpenCode, Claude Code, Codex & friends

4K 99 9
stackdeckhq
terset

TERse SETs. It writes a set of records as one terse table, so a model reads the same data with fewer tokens.

3K 0 0
linklbee
linklbee-scan

Find where your LLM API bill leaks. One file, standard library only, zero network calls.

3K 0 0
addiscorp
harar

Secrets manager.

2K 0 0
AlexKay28
tktop-tui

Live htop-style TUI dashboard for AI token consumption across coding agents (OpenCode, Claude Code, Codex, generic JSONL). Python wrapper that launches the tktop TUI via Bun.

2K 0 0
dev-formata-io
limitr

Most flexible usage billing & limits for AI: credits, metering, caps, and custom deals for every user and agent, in one policy that runs in your app and changes live.

2K 13 1
peterwkdev-creator
claude-context-cost

How much each source (CLAUDE.md, rules, skills, memory, tool results) costs in the context of a Claude Code session, counted from the API usage in its transcript. Also a context budget for CI, and the git version of each file a session loaded.

2K 0 0
MLSA-SRM
python-clik

A CLI tool to keep your Secret/OAuth Keys Safe

2K 8 5
ZON-Format
zon-format

ZON → 35-70% cheaper LLM prompts than JSON/TOON. Zero overhead.

2K 72 7
theadamdanielsson
contexttax

Where your Claude Code usage actually goes. Reads local logs only.

1K 0 0
pranayasharma
mcp-bloat

Audit how many tokens your MCP servers eat from your context window — before your agent pays for them.

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