Skip to main content

keyten

Python bindings for Keyten, a compact Rust dataframe engine that keeps columnar data compressed through whole queries.

Queries stay lazy until collect(), then run entirely in the engine with the GIL released — predicate and projection pushdown, vectorized parallel execution, disk spilling for data bigger than memory, and native-table I/O all happen outside the interpreter.

Install

Keyten supports 64-bit Linux, macOS arm64 (Apple Silicon), and CPython 3.11 or newer. See the installation guide for exact wheel tags and source builds.

pip install keyten

A first query

import keyten as kt

trades = kt.DataFrame([
    kt.Series.string("sym", ["a", "b", "a", "b"]),
    kt.Series.int("qty", [1, 2, 3, 4]),
])

result = (
    trades.lazy()
    .filter(kt.col("qty") > 1)
    .with_columns((kt.col("qty") * 10).alias("q10"))
    .group_by("sym")
    .agg([
        kt.col("q10").sum(),
        kt.col("qty").count().alias("n"),
    ])
    .sort("sym")
    .collect()
)

print(result)

What's in the box

  • Expressions — arithmetic, comparisons, boolean logic, casts, string operations (substring, regex extract), value recoding, null/NaN shaping, and conditional if_else.
  • Aggregations — totals, extrema, sample moments, exact distinct counts, quantiles, and pairwise correlation, per group or whole-frame.
  • Windows — cumulative, fixed-row rolling, duration rolling, exponentially weighted, ranking, filling, and partitioned over(...) evaluation.
  • Joins — inner, left, semi, anti, and backward/forward/nearest asof joins with by-groups and tolerance.
  • Mutation — eager append, upsert, update, and delete; existing lazy plans retain their original snapshot.
  • Temporal kinds — dates, timestamps, and times are first-class, parse straight from CSV, and ride the integer encodings.
  • Sources — scan_csv (strict typed inference), scan_parquet (files or directories, statistics-pruned), and scan_native, the engine's own zero-copy, crash-safe table format.
  • Interop — Arrow PyCapsule import/export with no required Arrow library dependency.
  • Scale — out-of-core execution against a self-derived memory budget; nothing to configure.
  • Workers — serializable scans can execute remotely or scatter mergeable aggregation across a worker list.

The package ships typed stubs (py.typed), so editors and type checkers see the full API with docstrings.

Documentation

Tutorials, the full API reference, and engine internals live at k10.works/docs.

Copyright © 2026 Rayforce Technologies Inc. All rights reserved.

Metadata

Release files for keyten 0.1.53

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 keyten 0.1.53
File Interpreter ABI Platform Actions
keyten-0.1.53-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 abi3 Linux glibc 2.17+ x86-64 Details for keyten-0.1.53-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
keyten-0.1.53-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for keyten-0.1.53-cp311-abi3-macosx_11_0_arm64.whl

Total release size: 12.2 MB

Release files / keyten-0.1.53-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL keyten-0.1.53-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 6.3 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
a8af5549d98b70a4d8a68e994d9fc654d4083f4373f8273e0cb447b25a28bc7b
BLAKE2b-256 checksum
How to use checksums
2964d2b7bf6910546453d2968374dec2ff01396ff5e05c46a071b57de2d93076
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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 Sep 21, 2026.

Transparency log

Release files / keyten-0.1.53-cp311-abi3-macosx_11_0_arm64.whl

Download URL keyten-0.1.53-cp311-abi3-macosx_11_0_arm64.whl
Size 5.8 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e55f1d22c229f19c1037d5ca2700dddf0146929466173d78f7249b81fa41d016
BLAKE2b-256 checksum
How to use checksums
ab10815e29dd71ea1445bc1522e0bf886d03fead00242c57ee24c7fe9df339b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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 Sep 21, 2026.

Transparency log

Security for keyten 0.1.53

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

Select from 2 files

Attestation for keyten-0.1.53-cp311-abi3-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 Sep 21, 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.

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