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

Tiktoken Python Packages

Python packages with the GitHub topic tiktoken. Sorted by monthly downloads, with stars and forks.
izikeros
count-tokens

Count tokens in a text file.

21K 15 0
cahya-wirawan
pyrwkv-tokenizer

A fast RWKV Tokenizer written in Rust

7K 55 5
gweidart
rs-bpe

A ridiculously fast Python BPE (Byte Pair Encoder) implementation written in Rust

4K 43 4
cahya-wirawan
rwkv-tokenizer

A fast RWKV Tokenizer written in Rust

3K 55 5
kgruiz
pytokencounter

A simple Python library for tokenizing text and counting tokens. While currently only supporting OpenAI LLMs, it helps with text processing and managing token limits in AI applications.

860 2 0
Reversehobo
openai-function-tokens

Predict the exact openai token usage of functions

529 19 1
adam2go
puretiktoken

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

522 0 0
bb1nfosec
skim-llm

Runtime token proxy + intelligence dashboard for LLM tools. Intercepts API calls, strips waste, tracks costs — for individual developers and Fortune 500 teams.

302 5 1
ElmiraGhorbani
chatgpt-long-term-memory

The ChatGPT Long Term Memory package is a powerful tool designed to empower your projects with the ability to handle a large number of simultaneous users and external sources.

276 63 3
Thibault00
runtoken

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

266 3 0
bb1nfosec
distill-llm

Runtime token proxy + intelligence dashboard for LLM tools. Intercepts API calls, strips waste, tracks costs — for individual developers and Fortune 500 teams.

239 5 1
uninhibited-scholar
llm-context-compressor

Shrink LLM context windows 40-80% (input-dependent, see benchmarks) by removing noise, redundancy, and long-tail detail — zero-dependency Python pipeline with tiktoken counting, an extractive summarizer, and a security-scan brief generator.

232 1 0
DevelopedBy-Siva
llm-tokenscope

Profile your LLM payloads. Find the waste. Cut the cost. Field-level token attribution, cost leak detection, and payload optimization for any LLM API.

231 0 0
Mrrobi
convopack

Framework-agnostic, provider-agnostic context-window packer for LLM chat history

225 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
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
Wolfe-Jam
slash-tokens

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

98 8 0
DelvyG
promptminify

Minify LLM prompts to save tokens — domain-aware, tiktoken-validated, zero regressions

83 1 0
pareshrnayak
token-trim-cli

Trim Python code for LLMs by removing comments, docstrings, and whitespace. Save AI tokens, reduce API costs, and fit more code into ChatGPT, Claude, and Gemini.

83 2 0
jmweb-org
tokenmeter-cli

Count tokens and estimate cost for prompts before you send them.

78 0 1
stef41
toksight

Tokenizer analysis & comparison toolkit — compression, coverage, audit, cost estimation. Zero deps.

71 1 0
RLASAF12
context-budget

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

71 0 0
soon-format
soon-format

SOON Python implementation — soon-format on PyPI

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