Skip to main content

toks for Python (libtoks)

The Python package of toks: a CPython extension module over the C ABI (include/toks.h), with the library linked in statically. Ids are exactly hf tokenizers 0.23.2's; the API follows hf's tokenizers.Tokenizer so it drops in, and the same object answers tiktoken's Encoding calls.

Install from PyPI (CPython 3.10-3.14; Linux x86-64 and arm64 as manylinux2014, macOS arm64; the import name is toks):

pip install libtoks
# or: uv pip install libtoks
import toks

tok = toks.Tokenizer.from_file("path/to/tokenizer.json")   # a model directory works too
ids = tok.encode("Hello world")                            # == hf tok.encode("Hello world").ids
tok.encode("Hello world", add_special_tokens=False)        # no bos / eos / template
tok.encode(text, added_tokens="nonspecial")                # == hf with encode_special_tokens=True
tok.encode(text, added_tokens="none")                      # no added token recognized
enc = tok.encode_ex(text)                                  # == hf tok.encode(text): an Encoding
enc.ids, enc.attention_mask, enc.type_ids, enc.special_tokens_mask, enc.tokens
tok.encode_batch(texts)                                    # list of lists, without the GIL, padded as hf pads
tok.encode_batch_ex(texts)                                 # == hf tok.encode_batch(texts): a list of Encoding
n = tok.encode_into(text, out)                             # ids straight into a uint32 / int32 buffer
tok.encode_bound(len(text.encode()))                       # the most ids any text of that many bytes gives
tok.decode(ids)                                            # == hf tok.decode(ids) (skip_special_tokens=True)
tok.pieces(text)                                           # piece end offsets (utf-8 bytes)
tok.token_to_id("<|endoftext|>"), tok.id_to_token(50256), tok.token_bytes(50256)
tok.token_to_id(b" hello")                                 # bytes: the id they decode from (the C index)
tok.id_flags(50256) & toks.ID_SPECIAL                      # ID_ADDED / ID_SPECIAL / ID_BYTE per id
tok.num_special_tokens_to_add(), tok.get_added_tokens_decoder()
st = tok.decode_stream(); st.push(ids); st.flush()         # incremental decode
tok.info()                                                 # algorithm, tier, n_ids, sha256, truncation, padding, ...

tok.encode(text, allowed_special="all")                    # tiktoken's Encoding.encode
tok.encode_ordinary(text), tok.decode_bytes(ids)           # tiktoken's
tok.n_vocab, tok.eot_token, tok.special_tokens_set, tok.token_byte_values()

The API and what each call equals

Every call below is checked against the reference named beside it by python/tests (through the built wheel), on every tokenizer.json under tests/data and in the tokenizer cache, and on the tiktoken models.

call gives equals
Tokenizer.from_file(path, *, tier, cache_mib), from_str(json), from_buffer(data) a tokenizer (toks_load)
encode(text, *, add_special_tokens=True, added_tokens=None, continuation=False) list[int] hf Tokenizer.encode(text).ids
encode_ex(text, *, add_special_tokens, added_tokens, continuation) Encoding hf Tokenizer.encode(text): ids, type_ids, tokens, attention_mask, special_tokens_mask, n_sequences, len()
encode_batch(texts, ...) list[list[int]] hf Tokenizer.encode_batch(texts)'s ids: the file's padding over the batch (BatchLongest: to its longest member)
encode_batch_ex(texts, ...) list[Encoding] hf Tokenizer.encode_batch(texts), field by field
encode_into(text, out, ...) the count encode's ids, written into out
encode_bound(n) int toks_encode_bound
pieces(text, *, added_tokens, continuation) list[int] hf's normalizer + pre-tokenizer, as byte offsets
decode(ids, skip_special_tokens=True), decode_batch(...) str hf Tokenizer.decode
decode_stream(skip_special_tokens=False) DecodeStream hf decode of all the ids pushed
num_special_tokens_to_add(is_pair=False) int hf num_special_tokens_to_add(False) (toks_template); a pair raises toks.Error
get_added_tokens_decoder() dict[int, AddedToken] hf get_added_tokens_decoder(), every field (toks_added)
token_to_id(token), id_to_token(id), get_vocab(...), get_vocab_size(...) hf's, read from the tokenizer.json
token_bytes(id), id_flags(id), info() toks_token, toks_id_flags, toks_get_info
encode(text, *, allowed_special=set(), disallowed_special="all") list[int] tiktoken 0.14.0 Encoding.encode, its ValueError included
encode_ordinary(text) list[int] tiktoken encode_ordinary
decode_bytes(ids), decode_bytes_batch(batch) bytes tiktoken decode_bytes (TOKS_DECODE_RAW; an id beyond the table is its KeyError)
n_vocab, max_token_value, eot_token, special_tokens_set, token_byte_values(), name tiktoken's (eot_token: KeyError when the file has no `<

encode(text) with no tiktoken keyword stays hf's call (added tokens recognized, the template, the file's truncation and padding). With allowed_special or disallowed_special it is tiktoken's: no template, truncation or padding, the allowed specials recognized, and ValueError (tiktoken's message) when the text holds a disallowed one. decode stays hf's; tiktoken's decode(ids) is decode_bytes(ids).decode("utf-8", "replace").

What is special is the file's own definition:

  • a tokenizer.json: the added tokens it marks special (hf's special_tokens_set). Its other added tokens are ordinary vocabulary, recognized by encode_ordinary too, as hf's encode_special_tokens=True recognizes them.
  • a tiktoken model: every special token it defines (Kimi K3's 256, Qwen-1's 208), none of them in encode_ordinary.

On a tokenizer.json, where tiktoken has no reference, each call equals hf:

  • encode(text, allowed_special="all") is hf's encode without template, truncation or padding.
  • encode_ordinary is the same with encode_special_tokens=True.
  • n_vocab is the highest id + 1.
  • token_byte_values() is the bytes of every id outside the added tokens, sorted.

Where these differ from the reference:

  • Encoding.overflowing is always []. hf fills it with the rest of a text its truncation cut; toks never computes that overflow.

  • Encoding.tokens raises toks.Error (TOKS_E_UNSUPPORTED) where the ids and the pieces do not determine hf's string, rather than guess:

    • a Unigram unknown piece: hf writes the normalized text the piece covers (albert's '日本語'), and toks never materializes that text;
    • an id the model writes under one string and an added token under another, in a text that holds the token (a test fixture; no cached tokenizer gives a model id to an added token of another string);
    • lstrip / rstrip tokens whose matches the pieces do not single out: hf's rstrip swallows a run and writes the next match inside it again ("\t\t" is '\t\t', '\t'), one whitespace run could be either of two whitespace tokens, or a single_word token's content also stands unmatched as a piece of its own ("a@@b @@") (test fixtures);
    • a post-processor two of whose readings give the template's ids under other strings: hf reads it as the first variant of its untagged enum that accepts the object (a TemplateProcessing that also carries cls and sep is Roberta to hf), and toks does not re-derive serde's acceptance (a test case; no file has one).

    Every other string is hf's, including the whitespace an lstrip / rstrip token takes ('<|user|>\n' in phi-3) and a normalized token's normalized content (llama's '▁<s>').

  • Kimi K3 follows its own tokenizer, which cuts a run of 25,000 non-space characters into chunks; the bare tiktoken engine does not.

  • Qwen-1's wrapper NFCs the text before tiktoken sees it, and so does toks.

token_to_id takes two forms of a token:

  • A str is hf's written form, read from the tokenizer.json, so a byte-level model's "Ġhello" works.
  • bytes are what the id decodes to, looked up in the library's own index (toks_token_to_id), so the same token is b" hello".

Don't pass an hf spelling's UTF-8 as bytes. It can name another valid id: gpt2's "¢" is id 95, but "¢".encode() (C2 A2) is id 44359.

An added token's content is found either way: "<s>" and b"<s>" both give llama2's id 1.

id_flags(id) gives hf's added_tokens_decoder facts as bits:

  • ID_ADDED: an added token holds the id.
  • ID_SPECIAL: that token's own special flag, not the rule skip_special_tokens uses.
  • ID_BYTE: a <0xHH> byte-fallback token.

An id beyond the table raises toks.Error (TOKS_E_ID).

Build (from the repository root; needs clang, make and uv):

python3 tools/ci/fetch_tokenizers.py              # the pinned tokenizer files the tests read (else they SKIP)
uv build --wheel python --python 3.12 --out-dir build/wheels
uv run --no-project --python 3.12 --with build/wheels/libtoks-*-cp312-*.whl --with pytest --with tokenizers==0.23.2 \
    --with tiktoken==0.14.0 --with transformers==5.18.0 \
    pytest python/tests                            # one wheel: pick your python's tag

python/build.sh builds and tests the wheels for every CPython on a machine. Wheels are published on PyPI as libtoks and attached to the GitHub releases; the license is Apache-2.0 (LICENSING.md).

Metadata

Release files for libtoks 0.3.4

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

Built distributions (wheels)

Table of built distributions (wheels) for libtoks 0.3.4
File Actions
libtoks-0.3.4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ x86-64 Details for libtoks-0.3.4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
libtoks-0.3.4-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ ARM64 Details for libtoks-0.3.4-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
libtoks-0.3.4-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for libtoks-0.3.4-cp314-cp314-macosx_11_0_arm64.whl
libtoks-0.3.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details for libtoks-0.3.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
libtoks-0.3.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ ARM64 Details for libtoks-0.3.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
libtoks-0.3.4-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for libtoks-0.3.4-cp313-cp313-macosx_11_0_arm64.whl
libtoks-0.3.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for libtoks-0.3.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
libtoks-0.3.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ ARM64 Details for libtoks-0.3.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
libtoks-0.3.4-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for libtoks-0.3.4-cp312-cp312-macosx_11_0_arm64.whl
libtoks-0.3.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for libtoks-0.3.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
libtoks-0.3.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ ARM64 Details for libtoks-0.3.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
libtoks-0.3.4-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for libtoks-0.3.4-cp311-cp311-macosx_11_0_arm64.whl
libtoks-0.3.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for libtoks-0.3.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
libtoks-0.3.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ ARM64 Details for libtoks-0.3.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
libtoks-0.3.4-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for libtoks-0.3.4-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 14.9 MB

Release files / libtoks-0.3.4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL libtoks-0.3.4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.0 MB
Tags CPython 3.14 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
f8a70aba9334c7275908d3a0f5d3e2b0b47313ef07a4ba96f0faa18fe1d01182
BLAKE2b-256 checksum
How to use checksums
6a0edf415e5382defb770a8eb4061bfa63e0647b3b9e66a99e8ccc76fa410f6f
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 1, 2026.

Transparency log

Release files / libtoks-0.3.4-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL libtoks-0.3.4-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 991.8 kB
Tags CPython 3.14 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
c42dade2f25f976bdff942872dc1411d150abda749ee3b2e545cb5dfd4240538
BLAKE2b-256 checksum
How to use checksums
8f0922d07bba5bfa236f17b28712dba13d64811ee1a589fcb9199b1437eb99d6
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 1, 2026.

Transparency log

Release files / libtoks-0.3.4-cp314-cp314-macosx_11_0_arm64.whl

Download URL libtoks-0.3.4-cp314-cp314-macosx_11_0_arm64.whl
Size 993.5 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e7bd79e10d376012292ce7a21dac97afee5b0a11efea3aa6bc6999093a0f21eb
BLAKE2b-256 checksum
How to use checksums
7123e9259493a7385ca0b61e345652ef4e492e7eda08d03827af1616d724e35e
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 1, 2026.

Transparency log

Release files / libtoks-0.3.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL libtoks-0.3.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.0 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
a97b61d0c798dc205bd0b49ee3be4cda89bd17198d6746b039c62ec64bb7bf4e
BLAKE2b-256 checksum
How to use checksums
4eb513d5b627294c11de9bca5fe605dbd11fae9baed9e405b60bf253f14e426f
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 1, 2026.

Transparency log

Release files / libtoks-0.3.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL libtoks-0.3.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 991.8 kB
Tags CPython 3.13 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
b1b3de46412242e5debfc57c9594f571c27984b91bbebce62d3af987f9ade43d
BLAKE2b-256 checksum
How to use checksums
d31416b6cf02c17f5917237f03c6898e7981d84479844ea5c83e40b73df4a552
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 1, 2026.

Transparency log

Release files / libtoks-0.3.4-cp313-cp313-macosx_11_0_arm64.whl

Download URL libtoks-0.3.4-cp313-cp313-macosx_11_0_arm64.whl
Size 993.4 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c8eef05ffbf79c32726c01a53bc9bc778723854856a02d9ee517f33a90d9305b
BLAKE2b-256 checksum
How to use checksums
dc83e9648458c918c9027e72ddfaf159dc7ae95511a50de6dbebab625bf9947b
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 1, 2026.

Transparency log

Release files / libtoks-0.3.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL libtoks-0.3.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.0 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
5f3e993ad70ba2045d5c9683829246c0e748bd3aa6bedf0aeebe8d9b3ce126e5
BLAKE2b-256 checksum
How to use checksums
ddd444370153889eda6cadc0b682845b2ccbab94652ec4d0f63b3caef5bf73de
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 1, 2026.

Transparency log

Release files / libtoks-0.3.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL libtoks-0.3.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 991.8 kB
Tags CPython 3.12 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
a8ecef2392b6ee30244618c883c59ca6fb4f41afce62eb0e2688cbdbdcf28f6e
BLAKE2b-256 checksum
How to use checksums
b41ab9eaf0e9a7178f3d07214d8e50c714f38b84def8946dbdbdc1753eff1d00
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 1, 2026.

Transparency log

Release files / libtoks-0.3.4-cp312-cp312-macosx_11_0_arm64.whl

Download URL libtoks-0.3.4-cp312-cp312-macosx_11_0_arm64.whl
Size 993.4 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4193e4dc2e6650f46a68a0a66e107167f92084131d37c1f9ebaa638d76e4155c
BLAKE2b-256 checksum
How to use checksums
417bc1175e1a9cdedeb82421cab1e5390a150d4afbf99084c82620ad62613bc0
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 1, 2026.

Transparency log

Release files / libtoks-0.3.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL libtoks-0.3.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.0 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
2d82397365f60857dfab16fbb1167c047947f3ba89356ad7ed78c99590a46f14
BLAKE2b-256 checksum
How to use checksums
e89a38973f4e1de650f33fc87ab0c1dbc65d32cb6ebd8577eb184fbc6fb13708
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 1, 2026.

Transparency log

Release files / libtoks-0.3.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL libtoks-0.3.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 991.3 kB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
2548266550f1ae7d3d8fc99034c3501dcc66d68fcde2366cd520c962a64272cf
BLAKE2b-256 checksum
How to use checksums
b6734bb8bfc2435e163a3e91aec533fdb18355330b670f9e1571be729706dcc0
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 1, 2026.

Transparency log

Release files / libtoks-0.3.4-cp311-cp311-macosx_11_0_arm64.whl

Download URL libtoks-0.3.4-cp311-cp311-macosx_11_0_arm64.whl
Size 992.8 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
dce9b009153e914d62c30bffd14df1061ed953346e6f15a56bf49cc622d91b27
BLAKE2b-256 checksum
How to use checksums
d7ef750f3602a44bf59cd0876a239ac8ad18f028bea2a8818c7d372ae8d5b755
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 1, 2026.

Transparency log

Release files / libtoks-0.3.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL libtoks-0.3.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.0 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
789d105636b9db72ece7f3740db616813e542b8c02b21a89b33485c37e717113
BLAKE2b-256 checksum
How to use checksums
cc0fc658120510448d81cf5a23574645a7d31df439e3b55e68749649f2fb459c
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 1, 2026.

Transparency log

Release files / libtoks-0.3.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL libtoks-0.3.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 991.4 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
8948a4a83b3845c00e62c3d685087e00d0b4fce3951401c3e2a6b0024a6ceb73
BLAKE2b-256 checksum
How to use checksums
5e7758ce9917ef3f750559a0f9d4bfc36ecfc4a3821ec9a1f6e8bc2f85b87501
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 1, 2026.

Transparency log

Release files / libtoks-0.3.4-cp310-cp310-macosx_11_0_arm64.whl

Download URL libtoks-0.3.4-cp310-cp310-macosx_11_0_arm64.whl
Size 992.9 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a47a00598887ec0e3714994c83c128e6cfd1dbef27774e0d8c763c3fe38b21ee
BLAKE2b-256 checksum
How to use checksums
a8f9303d5da7a9f5c23d5bb245fa6e7262e0476122f8bad6919e6f8bc2c94a5e
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 1, 2026.

Transparency log

Security for libtoks 0.3.4

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 15 files in this release have been uploaded with provenance metadata.

Select from 15 files

Attestation for libtoks-0.3.4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

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 1, 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.3.4 This release

15 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