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 Distribution
gptwc-1.0.0.tar.gz
(1.8 kB
view details)
Built Distribution
gptwc-1.0.0-py3-none-any.whl
(2.1 kB
view details)
File details
Details for the file gptwc-1.0.0.tar.gz
.
File metadata
- Download URL: gptwc-1.0.0.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8a1eef53de74113dd60abd22a2d46f9767f1f93b2f57a5222f93331c868fae5 |
|
MD5 | c3950771c785def84dad748ae175ec98 |
|
BLAKE2b-256 | de99a8d3a753cb26a66dd45a62784584e02da2c87adb6595f325e5aed5278afa |
File details
Details for the file gptwc-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: gptwc-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bf6e2d7116abe562adc7ccd3d71e51ec90077b6f4d7cb24351a18d33f71e54a |
|
MD5 | c38c2158c344558747b438e6148af7e2 |
|
BLAKE2b-256 | 66400f0440fd5446aaacf4c7a5585bd39ae2f40eefb4be1afcb104ddb8d05ee3 |