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.2M 1K 238
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.

346K 75K 6K
BobTheBuidler
ypricemagic

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

46K 79 19
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)

30K 0 0
BobTheBuidler
eth-portfolio-temp

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

22K 15 6
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.

19K 1 0
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.

17K 1 0
gawk-dev
mcpgawk

One gateway in front of every MCP server your agents can reach. A server that changes after you approved it is caught, the call is blocked before it runs, and nothing leaves your machine.

16K 0 0
ApeWorX
ape-tokens

Tokens converter plugin for the Ape Framework

13K 11 8
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
hamidi-dev
opentab-ai

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

6K 93 7
fjjjuv
prompt-flamegraph

Lightweight, zero-dependency Python package to profile LLM prompt tokens with interactive flamegraphs, waste detection, prompt diffs and HTML/SVG/Markdown/terminal exports.

4K 1 0
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.

3K 22 2
ojuschugh1
sqz

Context compression for AI coding agents: compresses tool output before it enters the model, dedups repeats to 13-token refs. Claude Code, Cursor, Codex, Kiro, Zed, any MCP client. Rust, zero LLM calls.

2K 646 43
JuliusBrussee
caveman-sdk

🪨 why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.

2K 111K 6K
Variably-Constant
trex-re

Token-Regular EXpression: a regex-shaped pattern language over typed tokens, evaluated by derivatives

2K 0 0
JuliusBrussee
caveman-middleware

🪨 why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.

2K 111K 6K
NadirRouter
barber-llm

Query-aware context trimming for LLM requests. Your context could use a trim.

1K 5 0
lupaxa-developers-toolbox
lupaxa-token-manager

Store API tokens in named profiles, with optional encryption, and emit them as shell exports

1K 1 0
ZON-Format
zon-format

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

1K 72 7
mathewOracle
promptbudget

Deterministic context-window budgeting for LLM prompts, with a full audit trail of every token decision. Zero dependencies.

981 0 0
adamallcock
runcost-ai

Small polyglot cost ledger for LLM and agent API calls

818 1 1
yingxiangge
agent-cost-tracker

Token, cache and context observability for AI coding agents.

747 1 2
mxmehl
kiro-cli-history

A terminal UI for fuzzy-searching, browsing, and resuming Kiro CLI conversations

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