ctok-rs
Offline Claude tokenizer and token counter for Python and Rust: no Anthropic API key, exact same counts as ctok, about 40-100x faster.
Install · Quick start · Performance · Accuracy · How it works · FAQ · Docs
Unofficial Rust port of sanderland/ctok by Sander Land. Not affiliated with, endorsed by, or supported by the ctok author or Anthropic.
Guarantee: for every input string,
ctok_rs.token_count(text, v) == ctok.token_count(text, v)forctok1.4.0.
ctok-rs is an offline Claude token counter and tokenizer for Python and Rust: you give it text and a Claude version, and it returns the token count without calling the Anthropic API, needing an API key, or touching the network. It is a Rust port of ctok and returns exactly the same counts as ctok 1.4.0 for every input. It supports the three counting families ctok defines: v3 (Claude 3 through Opus 4.6), v4.7 (Opus 4.7), and v4.8 (Opus 4.8, Sonnet 5, and Fable 5); see Supported versions.
Why
- Exact: reconstructs Claude token counts offline with no API calls or network access, guaranteed to match
ctok1.4.0 on every input string. - Fast: compiles the counting pipeline to Rust for about 40-100x higher throughput on a single thread (versus roughly 0.3-0.4 M characters per second in pure Python
ctok), eliminating the need for process worker pools. - Light: zero runtime dependencies, embedded vocabularies, frozen Unicode tables (no host
regexorunicodedatadependency), and 12.7x faster cold start (29 ms vs. 362 ms).
Only counting is ported; tokenize(), pieces(), witness(), and the ctok CLI are not part of ctok-rs.
Install
Python (one abi3 wheel per platform for Linux manylinux/musllinux x86_64 + aarch64, Windows x64, and macOS x86_64 + arm64; Python >= 3.10, zero runtime dependencies):
pip install ctok-rs
Building the Python package from source (requires a Rust toolchain):
pip install maturin
maturin develop --release
Quick start
Python
import ctok_rs
ctok_rs.token_count("hello, world") # 10 (default "3.0")
ctok_rs.token_count("hello, world", "4.7") # 15
ctok_rs.token_count("hello, world", "4.8") # 10
# Batch counting releases the GIL while counting in Rust
ctok_rs.token_counts(["", "hello, world"], "4.8") # [6, 10]
# Inspection helpers matching ctok.normalize and ctok.marked_stream
ctok_rs.normalize("\u2018hello\u2019", "3.0") # "'hello'"
ctok_rs.marked_stream("hello, world", "3.0") # "⟨bow⟩hello⟨eow⟩,⟨eow⟩⟨bow⟩world⟨eow⟩"
# Non-str arguments raise TypeError; unknown versions raise NotImplementedError
Drop-in replacement for ctok counting imports:
# Before: from ctok import token_count
from ctok_rs.compat import token_count
token_count("hello, world", "4.8") # 10
ctok_rs.compat mirrors ctok's signatures for token_count, normalize, and marked_stream. It also exposes tokenize, pieces, and witness, which delegate to upstream ctok if installed and raise ImportError (not ported; install ctok==1.4.0) otherwise.
Use from Rust
Optional: add the crate as a git dependency in Cargo.toml.
ctok-rs = { git = "https://github.com/StevenTran0410/ctok-rs", tag = "v0.1.2" }
use ctok_rs::{token_count, Family, TokenCounter};
fn main() -> Result<(), ctok_rs::Error> {
// One-shot helper backed by a process-wide vocabulary cache
assert_eq!(token_count("hello, world", "4.7")?, 15);
// Or hold a counter directly (Send + Sync)
let counter = TokenCounter::new(Family::V4_8)?;
assert_eq!(counter.count("hello, world"), 10);
assert_eq!(counter.count_batch(&["", "hello, world"]), vec![6, 10]);
Ok(())
}
Performance
Measured on AMD Ryzen 7 5700X 8-Core Processor (16 logical CPUs), 47.9 GiB RAM, Windows 11, Python 3.12.10, ctok-rs 0.1.2 (release build) against ctok 1.4.0, 2026-12-06; all counting is single-threaded. Every figure is the median of three full runs of benchmarks/bench.py (each run is best-of-5 for ctok-rs, best-of-2 for ctok). The machine was a normal desktop with unrelated background load (roughly 50% CPU in total during the runs), so absolute numbers vary by about 10-20% from run to run; the ratios between libraries are steadier.
Exact numbers
| Version | Dataset | Characters | ctok-rs (chars/s) | ctok (chars/s) | Speedup |
|---|---|---|---|---|---|
| 3.0 | UDHR | 5,041,903 | 21,255,798 | 269,877 | 78.8x |
| 3.0 | Rosetta Code | 1,328,822 | 20,006,564 | 265,165 | 75.4x |
| 3.0 | Rosetta Code held-out | 197,458 | 20,455,610 | 274,068 | 74.6x |
| 3.0 | MultiPL-E | 457,800 | 26,413,418 | 315,909 | 83.6x |
| 3.0 | synthetic text | 2,000,000 | 13,885,957 | 265,405 | 52.3x |
| 4.7 | UDHR | 5,041,903 | 20,737,000 | 333,672 | 62.1x |
| 4.7 | Rosetta Code | 1,328,822 | 24,110,469 | 343,798 | 70.1x |
| 4.7 | Rosetta Code held-out | 197,458 | 24,841,234 | 365,284 | 68.0x |
| 4.7 | MultiPL-E | 457,800 | 36,339,678 | 389,614 | 93.3x |
| 4.7 | synthetic text | 2,000,000 | 15,450,255 | 371,790 | 41.6x |
| 4.8 | UDHR | 5,041,903 | 22,592,977 | 342,847 | 65.9x |
| 4.8 | Rosetta Code | 1,328,822 | 23,323,878 | 331,575 | 70.3x |
| 4.8 | Rosetta Code held-out | 197,458 | 21,546,906 | 314,077 | 68.6x |
| 4.8 | MultiPL-E | 457,800 | 35,337,435 | 353,258 | 100.0x |
| 4.8 | synthetic text | 2,000,000 | 15,017,552 | 385,145 | 39.0x |
ctok-rs is 39x to 100x faster than ctok on every corpus and version (exact speedups are in the table under the throughput chart).
Exact numbers
| Cold start (import + first count, v3) | Idle RSS | Peak RSS on the UDHR corpus | |
|---|---|---|---|
| ctok-rs | 29 ms | 29.4 MiB | 59.9 MiB |
| ctok | 362 ms | 29.4 MiB | 95.5 MiB |
Methodology
The synthetic text is 2,000,000 characters (deterministic mix of prose, code, JSON, numbers, URLs and several scripts); ctok counts a 500,000-character prefix of it because it is slow, so its figure is still characters per second. The upstream corpora are counted in full by both libraries. Throughput is single-threaded, best of N repetitions with warm vocabularies, and the table shows the median of three such runs; cold-start load latency and peak RSS memory are measured separately (median of the same three runs).
0.1.2 vs 0.1.1 (same machine, interleaved runs)
| 0.1.1 | 0.1.2 | |
|---|---|---|
| Native single-thread throughput, geomean over 5 corpora x 3 versions (7 rounds x 7 passes, median) | 14.2 M chars/s | 21.2 M chars/s (1.49x) |
Throughput through Python token_counts, mean over the same 15 cells (2 passes x 7 runs, median) |
14.1 M chars/s | 21.3 M chars/s (1.50x) |
64-character token_count call, median |
about 5 us | about 2.8 us |
| Peak working set, native, 2,000,000-character text | 81 MiB | 54 MiB |
| Peak working set, native, all five corpora | 95 MiB | 68 MiB |
| Python peak RSS on the UDHR corpus | 53.1 MiB | 53.0 MiB |
| Vocabulary load, v3 / v4.7 / v4.8 (native, median) | 26 / 5.7 / 5.7 ms | 22 / 5.2 / 5.3 ms |
| Wheel size | 684,511 bytes | 685,458 bytes |
Reproduce locally with python benchmarks/bench.py; the median of three runs is built with python benchmarks/combine_runs.py run1.json run2.json run3.json --out ..., and the combined results above are in benchmarks/results/ryzen7-5700x-windows11-2026-12-06.json. Charts are generated by python benchmarks/plot.py from the committed JSON (needs matplotlib).
Accuracy
ctok-rs is verified on two axes: exact byte-for-byte parity with upstream ctok 1.4.0 across all shipped corpora, fuzz suites, and Unicode codepoints, and 100% exact-match reproduction of upstream's recorded count_tokens API values.
Exact numbers: parity with upstream ctok 1.4.0
| Dataset | Texts | v3 mismatches | v4.7 mismatches | v4.8 mismatches |
|---|---|---|---|---|
| UDHR (501 languages) | 501 | 0 | 0 | 0 |
| Rosetta Code | 1,741 | 0 | 0 | 0 |
| Rosetta Code held-out | 250 | 0 | 0 | 0 |
| MultiPL-E (22 languages) | 22 | 0 | 0 | 0 |
| Fuzz (seeds 0-3, 4000 texts each) | 16,000 | 0 | 0 | 0 |
| Every codepoint: bare, in a word, after a space | 3,344,384 | 0 | 0 | 0 |
Exact numbers: recorded count_tokens API values
| Corpus | Documents | Recorded family | ctok matches recorded | ctok-rs matches recorded |
|---|---|---|---|---|
| UDHR (501 languages) | 501 | v3 | 501 / 501 | 501 / 501 |
| UDHR (501 languages) | 501 | v4.7 | 501 / 501 | 501 / 501 |
| Rosetta Code | 1741 | v3 | 1741 / 1741 | 1741 / 1741 |
| Rosetta Code | 1741 | v4.7 | 1741 / 1741 | 1741 / 1741 |
| Rosetta Code held-out | 250 | v3 | 250 / 250 | 250 / 250 |
| Rosetta Code held-out | 250 | v4.7 | 250 / 250 | 250 / 250 |
| MultiPL-E (22 languages) | 22 | v3 | 22 / 22 | 22 / 22 |
| MultiPL-E (22 languages) | 22 | v4.7 | 22 / 22 | 22 / 22 |
Reproduce the parity checks locally with upstream ctok==1.4.0 installed:
python tools/fuzz_parity.py --seeds 0-3 --n 20000
python tools/fuzz_parity.py --all-codepoints
pytest
Parity is pinned against ctok 1.4.0 running on Python 3.12 with regex 2026.5.9 and unicodedata 15.0.0 (ctok_rs.UNICODE_PROVENANCE). Because those Unicode tables are frozen at build time, results do not depend on the caller's Python or regex version. Accuracy relative to the live Claude API is identical to upstream's measured accuracy, neither better nor worse.
Supported versions
| Requested version | Family | Model generation |
|---|---|---|
"3.0" <= version < "4.7" |
v3 (default) |
Claude 3 through Opus 4.6 |
"4.7" <= version < "4.8" |
v4.7 |
Opus 4.7 |
version >= "4.8" |
v4.8 |
Opus 4.8, Sonnet 5, and Fable 5 (v4.7 vocabulary under a 6-token bow-less frame) |
Version routing rules match upstream ctok:
versionmust be astr(&strin Rust); passing afloatin Python raisesTypeError.- Dotted components are compared as integers, with missing trailing components treated as
0(so"5" == "5.0"and"4.10"is after"4.9"). - Versions below
"3.0"or unparseable version strings raiseNotImplementedErrorin Python andError::UnknownVersionin Rust.
Versioning policy: ctok-rs X.Y.Z tracks upstream ctok 1.4.0 (ctok_rs.UPSTREAM_CTOK_VERSION); a new upstream release ships as a new ctok-rs minor version, while the patch number is for fixes of this port.
ctok-rs |
Upstream ctok |
|---|---|
0.1.x |
1.4.0 |
How it works
Counting a single user message proceeds in three stages:
- Normalization stream: Strips the reserved tool-call namespace tag after
<,</, or<//before a non-bracket character (collapsing<//to</), and inv3/v4.7splitsHuman:/Assistant:after two or more newlines into turn markers. Ordinary text gets Unicode NFC, control and private-use stripping, space-like folding, curly-quote folding (v3only), run classification, case marking (⟨shift⟩,⟨caps⟩), word-boundary framing (⟨bow⟩,⟨eow⟩), and a seam rewrite. - Reverse trie: Indexes the family vocabulary of 48,813 pieces (
v3) or 15,283 pieces (v4.7andv4.8) in a reverse character trie for fast suffix-to-start transitions during dynamic programming. - Minimum-cost tiling: Finds the minimum-cost tiling over the marked stream (breaking equal-cost ties in favor of the longest first tile while preserving right-to-left three-digit grouping on ASCII digit runs), prices uncovered characters by UTF-8 byte length, and adds the trailing-newline frame tail plus fixed per-message frame overhead (
v3: 7,v4.7: 11,v4.8: 6).
Differences from upstream's implementation:
- Unicode facts and NFC data are frozen into data/unicode_tables.bin by tools/gen_unicode_tables.py, so
regexandunicodedataare not needed at run time. - Vocabularies are embedded in the binary and verified against pinned SHA-256 digests (
PIECES_V3_SHA256,PIECES_V4_7_SHA256) at load time, failing loudly on any mismatch. token_countsreleases the Python GIL while Rust processes the batch.
Limitations
- Counts only:
tokenize(),pieces(),witness(), and the CLI are not ported. - Upstream approximations apply:
ctok-rsreproducesctok1.4.0, including its documented omissions (see upstream's README, such as Opus 5 trailing-whitespace behavior and later model offsets). - Frozen Unicode tables: Unicode properties are frozen at Python 3.12 / Unicode 15.0.0 +
regex2026.5.9; codepoints assigned in newer Unicode versions follow that snapshot, whereas running upstream on a different Python/regexversion may differ on newly assigned characters. - Unofficial reconstruction: not Anthropic's tokenizer; counts for Claude models newer than upstream's tables follow upstream's families.
- Input types: accepts text only (
strin Python, with lone surrogates folded toU+FFFDas inctok;&strin Rust); version strings use ASCII-digit dotted components.
FAQ
Can I count Claude tokens without an API key? Yes. ctok_rs.token_count(text, "4.8") runs locally and never contacts any server. See Count Claude tokens offline in Python.
Is it exact? It is exact relative to ctok 1.4.0 (zero mismatches on every parity check). Relative to the real Claude tokenizer it is as accurate as upstream ctok and no more; see Accuracy.
Is it official? No. It is an unofficial port of ctok and is not affiliated with Anthropic or the ctok author.
How is it different from ctok? Same counts, implemented in Rust, counting only. See ctok vs ctok-rs.
More answers are in the full FAQ.
Documentation
- Count Claude tokens offline in Python
- How accurate is offline Claude token counting?
- ctok vs ctok-rs
- FAQ
- llms.txt (machine-readable project summary)
Contributing
See CONTRIBUTING.md for guidelines. Every change must preserve exact parity with upstream ctok 1.4.0 (zero mismatches across all corpus, fuzz, and codepoint checks). Run the full suite locally with:
pytest
python tools/fuzz_parity.py --seeds 0-3 --n 20000
Credits and license
ctok-rsis a Rust port of sanderland/ctok by Sander Land, based on the research documented in On the biology of Claude's tokenizer. The embedded vocabularies and counting logic are upstream's work, ported under the MIT license.
Licensed under the MIT License: Copyright (c) 2026 Sander Land and Copyright (c) 2026 StevenTran0410. See LICENSE and LICENSE.upstream.
The test corpora (UDHR, Rosetta Code, MultiPL-E) are downloaded from upstream's repository for tests and benchmarks and are not redistributed here; each remains under its own license.
Claude and Anthropic are trademarks of Anthropic, PBC and are used only to describe compatibility.
Metadata
Release files for ctok-rs 0.1.2
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 | Actions |
|---|---|---|---|---|
| ctok_rs-0.1.2.tar.gz | 719.8 kB | With provenance | Details for ctok_rs-0.1.2.tar.gz |
Built distributions (wheels)
Total release size: 6.6 MB
Release files / ctok_rs-0.1.2.tar.gz
| Download URL | ctok_rs-0.1.2.tar.gz |
|---|---|
| Size | 719.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
687af63377ab5872019d4602ac3cf57a5feeb7a3e7cb3416d6b530392477fd7f
|
|
BLAKE2b-256 checksum How to use checksums |
2c9a248502d123cbcfd6edb7ce41c66571cfa6edbe9821e64a86921011576276
|
| 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 Dec 6, 2026.
Transparency logRelease files / ctok_rs-0.1.2-cp310-abi3-win_amd64.whl
| Download URL | ctok_rs-0.1.2-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 686.5 kB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
4ed68b8ba7bbbf73b0cd362658801671c6584f6dfd1cc7718b0ce680b585a632
|
|
BLAKE2b-256 checksum How to use checksums |
f202787676e47ae7db8a9d3ffb9f68947efc819eeb51e542f4b4a5680f799080
|
| 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 Dec 6, 2026.
Transparency logRelease files / ctok_rs-0.1.2-cp310-abi3-musllinux_1_2_x86_64.whl
| Download URL | ctok_rs-0.1.2-cp310-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.10 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
b77751da1f452d9d55396af1d3531234085a1965e290671fba876d4f069167f0
|
|
BLAKE2b-256 checksum How to use checksums |
7926b09e142a61ef34ddd5eaadd16c0dbdb0a281a649221179a35a54a757c18f
|
| 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 Dec 6, 2026.
Transparency logRelease files / ctok_rs-0.1.2-cp310-abi3-musllinux_1_2_aarch64.whl
| Download URL | ctok_rs-0.1.2-cp310-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 965.4 kB |
| Tags | CPython 3.10 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
4692786c7c4f78f748d2c5b5ffbc99b0f9bac63bdb865b160ee1a8eac5118734
|
|
BLAKE2b-256 checksum How to use checksums |
2b89b354d7fe84bb1b89661e9882f57005a0f9a228334096783ddc5e0de6bf71
|
| 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 Dec 6, 2026.
Transparency logRelease files / ctok_rs-0.1.2-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | ctok_rs-0.1.2-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 794.4 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
0edb1fe1784052e5f33cacacbc8dc0407f56a5006962f2bf25a16f5a3c63c0c2
|
|
BLAKE2b-256 checksum How to use checksums |
2145a15f8a50b50973d7f0cb87619ed646ea57dc2d65d99b060c629e2c1640a2
|
| 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 Dec 6, 2026.
Transparency logRelease files / ctok_rs-0.1.2-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | ctok_rs-0.1.2-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 788.4 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
eefa50d0794c4ef50d6c4fa20996b092c26abae6fb65c6cae2d7e3f94a233e5a
|
|
BLAKE2b-256 checksum How to use checksums |
c384464ec35c0985cdd04c373de130a473f30904576c3b5ce8555a461b530b27
|
| 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 Dec 6, 2026.
Transparency logRelease files / ctok_rs-0.1.2-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | ctok_rs-0.1.2-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 812.7 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
59629bdf15724077d42fb1ec497dca51a09f05258d9da69c9598b2b74c98f266
|
|
BLAKE2b-256 checksum How to use checksums |
def8da7532cd95e029dc3f061724957c08ccfda9f1c2ea9a3e1bb48e2071cebe
|
| 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 Dec 6, 2026.
Transparency logRelease files / ctok_rs-0.1.2-cp310-abi3-macosx_10_12_x86_64.whl
| Download URL | ctok_rs-0.1.2-cp310-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 785.7 kB |
| Tags | CPython 3.10 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
d782bc4c2ea8fbd50db2e969756a61beff33db80b4f9f3ffce84ac3c78bb702f
|
|
BLAKE2b-256 checksum How to use checksums |
3aaa8504c58737a1e251da718433c833cde51c3e5c48770dbb7ea52aedfb667c
|
| 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 Dec 6, 2026.
Transparency logSecurity for ctok-rs 0.1.2
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 8 files in this release have been uploaded with provenance metadata.
Attestation for ctok_rs-0.1.2.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 Dec 6, 2026.
Transparency logA 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.