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 details)
File details
Details for the file gptwc-1.1.0-py3.10.egg
.
File metadata
- Download URL: gptwc-1.1.0-py3.10.egg
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6f2bc9c410b5b32c77c3ef716cecf36cab00a58ef5d8eddd5828fee0a809dc5 |
|
MD5 | 0084813f4f411a598a3db86d94c76216 |
|
BLAKE2b-256 | 4411f0776402c097079bbbf4fe024f092a366a08ddb68e7c3eac5ffaa926f496 |
File details
Details for the file gptwc-1.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: gptwc-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54537770454e66882513f188cbe99f8f513333ccb633d154454d3d6edf75d5b4 |
|
MD5 | 0d33fcef6438473c30a024246f26f873 |
|
BLAKE2b-256 | 6355aebf61d1ecb4604dab7af03d7740d41bcfbd6b978599931ab90855e9962d |