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.

22
/ 100
Experimental

No commits in the last 6 months. Available on PyPI.

Stale 6m
Maintenance 2 / 25
Adoption 2 / 25
Maturity 18 / 25
Community 0 / 25

How are scores calculated?

Stars

2

Forks

Language

Python

License

GPL-3.0

Last pushed

Oct 01, 2025

Commits (30d)

0

Dependencies

6

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/kgruiz/PyTokenCounter"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.