A package to count tokens in input text using OpenAI's tiktoken library.
Project description
gptwc: wc for GPT tokens
A simple utility for counting tokens. Uses tiktoken
Example Usage:
cat logs.txt | gptwc
gptwc < input.txt
Prints the number of tokens in the input stdin text, similar to how wc
prints the number of words.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
gptwc-1.1.0-py3.10.egg
(3.7 kB
view hashes)
Close
Hashes for gptwc-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54537770454e66882513f188cbe99f8f513333ccb633d154454d3d6edf75d5b4 |
|
MD5 | 0d33fcef6438473c30a024246f26f873 |
|
BLAKE2b-256 | 6355aebf61d1ecb4604dab7af03d7740d41bcfbd6b978599931ab90855e9962d |