Skip to content
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
tuetoken-org
tuetoken

The fastest BPE tokenizer for modern LLMs (4.5 GB/s cold, up to 9.0 GB/s warm) -- drop-in for transformers.AutoTokenizer, byte-exact, never quadratic.

9K 7 0
gweidart
rs-bpe

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

7K 44 4
cahya-wirawan
pyrwkv-tokenizer

A fast RWKV Tokenizer written in Rust

6K 55 5
behrouzbk
prompt-tokensaver

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

4K 7 2
cahya-wirawan
rwkv-tokenizer

A fast RWKV Tokenizer written in Rust

2K 55 5
zainulwahaj
tokforge

BPE tokenizer in Rust with Python bindings. Token ids identical to tiktoken for GPT-2, GPT-4 and GPT-4o, checked on 110M differential inputs.

2K 0 0
s3bastiankoch
tiktoken-fast

Drop-in replacement for OpenAI's tiktoken in Python, JavaScript and Go, plus a Rust crate. Same token ids, 3 to 11x faster.

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

971 2 0
adeyomilawal
membrane-aol

Prompt compiler for LLM apps: token budgets, U-shaped layout, prompt caching and ref-map citations. Apache-2.0.

892 1 0
Reversehobo
openai-function-tokens

Predict the exact openai token usage of functions

698 20 1
adam2go
puretiktoken

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

622 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.

556 5 1
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.

533 0 0
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.

502 63 3
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.

436 5 1
Thibault00
runtoken

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

434 3 0
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.

416 1 0
liurongchen1
shenlun-forge

Context compression for LLM agents that you can measure on your own conversations

398 1 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.

276 0 0
Mrrobi
convopack

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

217 0 0
Wolfe-Jam
slash-tokens

Token budget estimation in 4.8 KB WASM. Sub-millisecond. Zero dependencies.

187 8 0
jmweb-org
tokenmeter-cli

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

163 0 1
DelvyG
promptminify

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

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