Skip to main content

ffwf-tau-tokens

Local tokenizers for τ (tau), an agent harness. This wheel is what pip install 'ffwf-tau[tokens]' adds: it lets τ count a request's tokens before sending it, with the model's own tokenizer and chat template, instead of estimating.

It is of little use alone, and it depends on nothing. Install it through the extra, which pins it to the version of ffwf-tau it was built with:

pip install 'ffwf-tau[tokens]'

What is in it

The package is tau_tokens. Bytes in, counts out: it reads no file, opens no connection and reads no clock.

  • Tokenizer: OpenAI's o200k_base and cl100k_base (embedded), or any Hugging Face tokenizer.json given as bytes. encode(text) and count(text); a count remembers the pieces of text it has seen, so counting a growing conversation again is cheap.
  • ChatTemplate: a model's chat template, rendered as transformers' apply_chat_template renders it, from the template's text or a tokenizer_config.json.
  • parse_identity, catalogue, candidates, verdict: the names of tokenizers (tiktoken:o200k_base, hf:OWNER/REPO@REVISION, file:/abs/tokenizer.json), a catalogue of the common ones, and a way to tell from a server's reported counts which one it uses.
from tau_tokens import ChatTemplate, Tokenizer

tokenizer = Tokenizer.from_json(open("tokenizer.json", "rb").read())
template = ChatTemplate.from_config(open("tokenizer_config.json", "rb").read())
text = template.render([{"role": "user", "content": "Hello!"}])
print(tokenizer.count(text))

Counts and renderings are tested against the reference implementations (tokenizers, tiktoken, transformers) for Qwen3, Llama 3, Mistral (Tekken), Gemma 3 and 4, gpt-oss, DeepSeek, Phi-4-mini and GLM. Whether a given server bills the same count is for its own reports to confirm, which is what τ does before it calls a count exact.

The reference lists every name and signature. MIT licensed.

Metadata

Release files for ffwf-tau-tokens 0.16.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ffwf-tau-tokens 0.16.0
File Size Uploaded Provenance Actions
ffwf_tau_tokens-0.16.0.tar.gz 58.2 kB With provenance Details for ffwf_tau_tokens-0.16.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for ffwf-tau-tokens 0.16.0
File Actions
ffwf_tau_tokens-0.16.0-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details for ffwf_tau_tokens-0.16.0-cp314-cp314t-win_amd64.whl
ffwf_tau_tokens-0.16.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64 Details for ffwf_tau_tokens-0.16.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
ffwf_tau_tokens-0.16.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64 Details for ffwf_tau_tokens-0.16.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
ffwf_tau_tokens-0.16.0-cp314-cp314t-macosx_11_0_x86_64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ x86-64 Details for ffwf_tau_tokens-0.16.0-cp314-cp314t-macosx_11_0_x86_64.whl
ffwf_tau_tokens-0.16.0-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details for ffwf_tau_tokens-0.16.0-cp314-cp314t-macosx_11_0_arm64.whl
ffwf_tau_tokens-0.16.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for ffwf_tau_tokens-0.16.0-cp312-abi3-win_amd64.whl
ffwf_tau_tokens-0.16.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.12 abi3 Linux glibc 2.17+ x86-64 Details for ffwf_tau_tokens-0.16.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
ffwf_tau_tokens-0.16.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.12 abi3 Linux glibc 2.17+ ARM64 Details for ffwf_tau_tokens-0.16.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
ffwf_tau_tokens-0.16.0-cp312-abi3-macosx_11_0_x86_64.whl CPython 3.12 abi3 macOS 11.0+ x86-64 Details for ffwf_tau_tokens-0.16.0-cp312-abi3-macosx_11_0_x86_64.whl
ffwf_tau_tokens-0.16.0-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for ffwf_tau_tokens-0.16.0-cp312-abi3-macosx_11_0_arm64.whl

Total release size: 48.7 MB

Release files / ffwf_tau_tokens-0.16.0.tar.gz

Download URL ffwf_tau_tokens-0.16.0.tar.gz
Size 58.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cf1cdbdca89061cca2236265ab37d60ad592fa627cec54009d7d2e0b64009e27
BLAKE2b-256 checksum
How to use checksums
4ac6905095548f37c4aa8dc5aa60d75ea7b2c508e99774ba37cbaa5a8d0baa74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / ffwf_tau_tokens-0.16.0-cp314-cp314t-win_amd64.whl

Download URL ffwf_tau_tokens-0.16.0-cp314-cp314t-win_amd64.whl
Size 4.8 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
a7c4619f21020095fc03a3063ffb424f5c1a0bbe106358bbce8b06f3ccd8b73e
BLAKE2b-256 checksum
How to use checksums
e5275a814a69214e75605dc122d521ce6ae1ee54d518fc092239d6e55c8cbd54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / ffwf_tau_tokens-0.16.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL ffwf_tau_tokens-0.16.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 4.9 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
a650876f24d581260dc4a91ae6c12ee2656e677cc6b4a14efd0995602612324d
BLAKE2b-256 checksum
How to use checksums
95979e8daf31418577ca62cced3bc23c071a3e1c65c8e48bb75fe9c0f0aa0be1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / ffwf_tau_tokens-0.16.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL ffwf_tau_tokens-0.16.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 4.8 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
bd35432b63f10d96ae34012c2ac025a400b7ef4af1aaa2010cc1257c9849e274
BLAKE2b-256 checksum
How to use checksums
97ee5a99dbedfa458469e6363e3cf17013ff31864b679623f457a28a6b88e33b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / ffwf_tau_tokens-0.16.0-cp314-cp314t-macosx_11_0_x86_64.whl

Download URL ffwf_tau_tokens-0.16.0-cp314-cp314t-macosx_11_0_x86_64.whl
Size 4.9 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
85122de6e684b9607018e5cef9974b23749f544f83c121f9f1ddbdefa829bba4
BLAKE2b-256 checksum
How to use checksums
6b127d0118d450de82f0f9a261b9c7ebbd5ea189a4e369d4f3fff8e6fb755af2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / ffwf_tau_tokens-0.16.0-cp314-cp314t-macosx_11_0_arm64.whl

Download URL ffwf_tau_tokens-0.16.0-cp314-cp314t-macosx_11_0_arm64.whl
Size 4.9 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5d1d7471f1ebc42cf7172da219bae9f00f708d09091c681aa97d0a44ed2b449e
BLAKE2b-256 checksum
How to use checksums
18e7c726271687038f66c3f0f13a34d0a60128d0d46c8ea2a1d1d78bf21fa2a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / ffwf_tau_tokens-0.16.0-cp312-abi3-win_amd64.whl

Download URL ffwf_tau_tokens-0.16.0-cp312-abi3-win_amd64.whl
Size 4.8 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
5e59703f9e4fb9e9ace156f6b0bda7453814df2960209e49bdaf347229664380
BLAKE2b-256 checksum
How to use checksums
b89e8a4c231e57606f9fac71c11e25f07e1abf58ad06648140fc57ae5cd7d0ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / ffwf_tau_tokens-0.16.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL ffwf_tau_tokens-0.16.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 4.9 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
1b3f52d38a0285087aaaae14f1dd454dec256bfa646ec102f31991eccd57d7b4
BLAKE2b-256 checksum
How to use checksums
658f95020e076547ac789c71dffd557f60696e4c0a7a4066a6b386803f2379db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / ffwf_tau_tokens-0.16.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL ffwf_tau_tokens-0.16.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 4.8 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
32ed5a1f672ccc680b656d5761cf8b6e2dcdafdbb2915210b4b4d962e401b988
BLAKE2b-256 checksum
How to use checksums
160681cdd551b225df827649c8b8e191d5d3e341e1e00d0629d183d61a2ceed9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / ffwf_tau_tokens-0.16.0-cp312-abi3-macosx_11_0_x86_64.whl

Download URL ffwf_tau_tokens-0.16.0-cp312-abi3-macosx_11_0_x86_64.whl
Size 4.9 MB
Tags CPython 3.12 abi3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
6bd2bcb158d8110446e1f54d18d37900dcdc37869f85162eb2628909fa7d907f
BLAKE2b-256 checksum
How to use checksums
590dc60b9d0bf6248ea08bf9812c072d3ebc28311d0c259a7cae68c2c31c7f46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / ffwf_tau_tokens-0.16.0-cp312-abi3-macosx_11_0_arm64.whl

Download URL ffwf_tau_tokens-0.16.0-cp312-abi3-macosx_11_0_arm64.whl
Size 4.9 MB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2e0e9a0a0cc5a5220128d189ad641b8c2586972727e823655e311d8f47950afd
BLAKE2b-256 checksum
How to use checksums
4029f5d64808d376533d60dab5b1bd522a11bdcb245d590093456c74399c6115
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for ffwf-tau-tokens 0.16.0

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.

Full provenance

All 11 files in this release have been uploaded with provenance metadata.

Select from 11 files

Attestation for ffwf_tau_tokens-0.16.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.16.0 This release

11 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page