TokenShark
Patch your LLM client with one import and see real-time token costs in your terminal.
import tokenshark
tokenshark.monitor()
# OpenAI and Anthropic calls are now logged with cost, latency, and
# (optionally) your own metadata tags.
Status
Early build — core patching + SQLite cost tracking (proxy.py,
tracker.py, config.py, exceptions.py) is in place. cli.py,
dashboard.py, alerts.py, and tests are still to come.
Install (once published)
pip install tokenshark[openai,anthropic]
This is a placeholder — pyproject.toml's readme field points here,
and hatchling needs the file to exist to build package metadata at all,
so pip install -e . would fail on a fresh clone without it. Not one of
the 5 requested files — added purely to keep today's pip install -e .
from breaking. Replace with a real README on Day 3 polish.
Metadata
Release files for tokenshark-bin 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tokenshark_bin-0.2.1.tar.gz | 73.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tokenshark_bin-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 101.1 kB
Release files / tokenshark_bin-0.2.1.tar.gz
| Download URL | tokenshark_bin-0.2.1.tar.gz |
|---|---|
| Size | 73.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58009a49c9f237984ad8419c1d31fcea3fe70ecde08e6941c18a3b21c05fce95
|
|
BLAKE2b-256 checksum How to use checksums |
793b905207ca116c66991a914284391403e70e5e59b5482c8916fb101c3b517f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / tokenshark_bin-0.2.1-py3-none-any.whl
| Download URL | tokenshark_bin-0.2.1-py3-none-any.whl |
|---|---|
| Size | 27.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
822446fb9d5e105a7560792c3150775e5ec2d028f6a6a0f18a1dc0acda8939b8
|
|
BLAKE2b-256 checksum How to use checksums |
378c4d8c09a34b8a68e64de6b4b7dbd049882fd33c9ca329b4a3771fa216d287
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Security for tokenshark-bin 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.