count-tokens

Count number of tokens in the text file using toktoken tokenizer from OpenAI.

Installation

In a virtualenv (see these instructions if you need to create one):

pip3 install count-tokens

Releases

Version Released Bullseye
Python 3.9
Bookworm
Python 3.11
Files
0.7.2 2025-01-09    
0.7.0 2023-09-26    
0.6.0 2023-09-26    
0.5.0 2023-09-26    
0.4.0 2023-07-01  
0.3.0 2023-06-28  
0.2.0 2023-06-28  
0.1.0 2023-06-28  

Issues with this package?

Page last updated 2025-07-18 02:22:52 UTC