Skip to main content

tif1-native

Optional native accelerators for tif1. tif1 works without this package; when it is importable, tif1 decodes telemetry payloads with tif1_native.decode_telemetry, which parses a {driver}/{lap}_tel.json payload straight into typed numpy arrays while releasing the GIL, so the fetch and cache threads parse in parallel on multi-core hosts. From 0.2 the DriverAhead channel is returned dictionary-encoded (int32 codes into a short category list, built by the dict_factory tif1 passes) instead of one Python str per sample; tif1 builds the string column from the codes. Frames are identical either way (tests/unit/test_native_decoder.py).

From 0.2.1, tif1_native.lz4_frame_decompress_into(src, dst) -> int decodes an lz4 frame into a caller-owned writable buffer with the GIL released. On Linux, tif1 uses it to decompress the frame tier's driver rows into huge-page mmap buffers (tests/unit/test_elis_e4_huge_page_rows.py). The blocks are decoded by liblz4 (LZ4_decompress_safe_usingDict, the decoder pyarrow's lz4 codec runs), vendored by the lz4-sys crate and compiled into the extension; the frame header is parsed in Rust (src/lz4.rs), which rejects checksummed frames and dictionary ids.

TIF1_DISABLE_NATIVE=1 makes tif1 ignore an installed extension.

Build locally

Needs a Rust toolchain and a C compiler (gcc or clang, MSVC on Windows) for the vendored liblz4:

uvx maturin develop --release -m native/Cargo.toml

or build a wheel with uvx maturin build --release -m native/Cargo.toml.

Wheels

.github/workflows/native.yml builds and tests the distribution on every change under native/, and uploads it to TestPyPI or PyPI from a manual dispatch only:

  • one cp311-abi3 wheel per platform, used by every GIL CPython from 3.11 on (3.15 included) without a rebuild;
  • no free-threaded wheels for now: pyo3 0.29 builds only 3.14t and tif1 does not run on free-threaded CPython yet (orjson and polars ship no such wheels); the module declares gil_used = false, so a local build on a free-threaded interpreter keeps the GIL disabled;
  • Linux manylinux2014 and musllinux_1_2 (x86_64, aarch64), macOS universal2, Windows x64 and arm64, plus an sdist for other platforms (needs Rust and a C compiler).

Pyodide is not built; tif1 uses orjson there.

Metadata

Release files for tif1-native 0.2.1

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

Source distribution (sdist)

Source distribution for tif1-native 0.2.1
File Size Uploaded Provenance Actions
tif1_native-0.2.1.tar.gz 15.1 kB Without provenance Details for tif1_native-0.2.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for tif1-native 0.2.1
File Actions
tif1_native-0.2.1-cp311-abi3-win_arm64.whl CPython 3.11 abi3 Windows ARM64 Details for tif1_native-0.2.1-cp311-abi3-win_arm64.whl
tif1_native-0.2.1-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for tif1_native-0.2.1-cp311-abi3-win_amd64.whl
tif1_native-0.2.1-cp311-abi3-musllinux_1_2_x86_64.whl CPython 3.11 abi3 Linux musl 1.2+ x86-64 Details for tif1_native-0.2.1-cp311-abi3-musllinux_1_2_x86_64.whl
tif1_native-0.2.1-cp311-abi3-musllinux_1_2_aarch64.whl CPython 3.11 abi3 Linux musl 1.2+ ARM64 Details for tif1_native-0.2.1-cp311-abi3-musllinux_1_2_aarch64.whl
tif1_native-0.2.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 abi3 Linux glibc 2.17+ x86-64 Details for tif1_native-0.2.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
tif1_native-0.2.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.11 abi3 Linux glibc 2.17+ ARM64 Details for tif1_native-0.2.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
tif1_native-0.2.1-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 10.12+ x86-64, macOS 10.12+ universal2 (ARM64, x86-64), macOS 11.0+ ARM64 Details for tif1_native-0.2.1-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Total release size: 2.3 MB

Release files / tif1_native-0.2.1.tar.gz

Download URL tif1_native-0.2.1.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ff0fd95ae193e06959c46b8059597ba8284f5f396fd6108ed3953e6e55bfe7ed
BLAKE2b-256 checksum
How to use checksums
d12e738e6f6c1eadbb5a616afae0afda6c31aec28bc4495714bb06b1db9c270a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tif1_native-0.2.1-cp311-abi3-win_arm64.whl

Download URL tif1_native-0.2.1-cp311-abi3-win_arm64.whl
Size 157.7 kB
Tags CPython 3.11 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
89f07115d1be80c21c872d9b5160a31e4da1f293be7c1a8a0023272a1af0159a
BLAKE2b-256 checksum
How to use checksums
a8d70d604398c990cc68e54f2d85f57f9c2d61ea3bc3f1b94edba19388ed1161
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tif1_native-0.2.1-cp311-abi3-win_amd64.whl

Download URL tif1_native-0.2.1-cp311-abi3-win_amd64.whl
Size 163.9 kB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
e95e3d18868fb216b74152a77c33c41efeb2f8e060192844dae8a3c2a3a0bd4c
BLAKE2b-256 checksum
How to use checksums
c207d9e4a534c894de738a046346a0a4e5a6a9f70e417ca4e0fbcfa5886be387
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tif1_native-0.2.1-cp311-abi3-musllinux_1_2_x86_64.whl

Download URL tif1_native-0.2.1-cp311-abi3-musllinux_1_2_x86_64.whl
Size 489.4 kB
Tags CPython 3.11 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
4eee6e1e281d2ffa207b6f7788e168e513dec944fda9295dfb3e682c55c7af14
BLAKE2b-256 checksum
How to use checksums
4e382df419df2ee313cdb60964df4fbec19b92962740b63714c76a6ebb56c00c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tif1_native-0.2.1-cp311-abi3-musllinux_1_2_aarch64.whl

Download URL tif1_native-0.2.1-cp311-abi3-musllinux_1_2_aarch64.whl
Size 452.8 kB
Tags CPython 3.11 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
f6afc98d0210d5f8ebd66634c5e6b1ad23b5183bfea17d040b31cb374e12839c
BLAKE2b-256 checksum
How to use checksums
789f3b162f8eda5b4c0a4ec6d61f16914ee70f94ab8d491765c2939774e2503b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tif1_native-0.2.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL tif1_native-0.2.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 278.5 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
fcb77602462f5c3927ff88094a99ecfa863e5622ad13e700bbdb84dc09722090
BLAKE2b-256 checksum
How to use checksums
945fa34bdbcf337e05f1bea21517549806fd8d5455e157009c8b7739cd2d9882
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tif1_native-0.2.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL tif1_native-0.2.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 276.4 kB
Tags CPython 3.11 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
68d67d5927e29b1904ce44bad75a91ed3c09ed7f0588dc601cc9d0b626f0c147
BLAKE2b-256 checksum
How to use checksums
e0281beed4e06fb55bbc7fba48cb6264a216556748bb0c0a076e0a99f75ee2f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tif1_native-0.2.1-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Download URL tif1_native-0.2.1-cp311-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
Size 515.7 kB
Tags CPython 3.11 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8d9f616cd7f2b0e442c46e59ab77af1b9b0449be968d0f8f075c9f8369b83c36
BLAKE2b-256 checksum
How to use checksums
c5c5d76768690e2fbaee902ef78c4c8f8115dc6668b7122d83d3acde94f26ac0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for tif1-native 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.

Release history Release notifications | RSS feed

This release

0.2.1 This release

8 release files No 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