Skip to main content

OpenKL

OpenKL is an experimental numerical and columnar analytics library with a C++17 core, Python arrays/DataFrames, SQL, and an interactive terminal workspace. CPU execution is the baseline; selected operations also have Metal, CUDA, and experimental HIP implementations. Backend availability is not a guarantee that every operation executes on that backend.

Start here

OpenKL 0.1.0 is alpha software. CPU execution is the baseline. CUDA and HIP have not yet been qualified on hardware; native Windows is not supported. Research modules are experimental and are not part of the qualified scope.

Install from this checkout

Use Python 3.10 or newer and a C++17 compiler. macOS source builds require the Xcode command-line tools. Linux source builds require a C++ compiler, standard development headers, and zlib development files. Build isolation installs CMake, Ninja, and pybind11.

python -m venv .venv
# Activate .venv using your platform's normal activation command.
python -m pip install .

Once the package is published to PyPI, install it with:

python -m pip install openkl

Or install a wheel built and tested for your Python version, OS, and architecture:

python -m pip install /path/to/openkl.whl

Basic usage

import numpy as np
import openkl as okl

values = okl.array(np.arange(4, dtype=np.float32), dtype="float32", device="cpu")
print((values + values).to_numpy())  # [0. 2. 4. 6.]

sales = okl.DataFrame({"amount": [2, 5]})
result = okl.sql("SELECT SUM(amount) AS total FROM sales", sales=sales)
print(result)

For a DataFrame filter-and-group example, source installation details, and troubleshooting, see the Getting started guide. OpenKL is alpha software; read the API stability policy before building a dependency on its public API.

Launch the terminal interface with openkl in an interactive terminal. Type /settings to select a device, input mode, CPU threads, preview size, and profiling. Existing openkl --help and other subcommands remain usable from scripts.

Optional integrations

python -m pip install "openkl[cloud]"  # PyArrow, Delta Lake, Iceberg
python -m pip install "openkl[ml]"     # PyTorch/scikit-learn integrations
python -m pip install "openkl[ray]"    # Ray integration

From a checkout, use ".[cloud]" and so on instead.

Basic imports, CPU arrays, the tested SQL example, and the terminal workspace do not require those optional packages. Parquet/Arrow and lakehouse paths can require PyArrow; requesting such an operation without its dependency should produce installation guidance.

Versions and license

Python package version: 0.1.0. The independently versioned terminal UI currently displays 0.1.0v. Release tags are checked against the Python package version, not the terminal’s display version.

OpenKL is distributed under the Apache License 2.0. See NOTICE for the existing third-party acknowledgments.

Metadata

Release files for openkl 0.1.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 openkl 0.1.0
File Size Uploaded Provenance Actions
openkl-0.1.0.tar.gz 1.2 MB Without provenance Details for openkl-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openkl 0.1.0
File Interpreter ABI Platform Actions
openkl-0.1.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for openkl-0.1.0-cp312-cp312-macosx_11_0_arm64.whl

Total release size: 4.7 MB

Release files / openkl-0.1.0.tar.gz

Download URL openkl-0.1.0.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
cfc52816751fd48ae69f2f48c7feaebce3d0864850591b5c52ce1b67ef31bb7e
BLAKE2b-256 checksum
How to use checksums
57591d579ff2829788690ebf559739240b12fc576e28a7e2b0f48e8be3cf6f2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / openkl-0.1.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL openkl-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Size 3.4 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
957871d3e66155d45f5bf55eaabcf8c6341d616ccfdb43170a1e72888e236dd2
BLAKE2b-256 checksum
How to use checksums
5500711c02e2cbe6c28657811164c3c18903b547d5ad31f560b7188ea7b1494f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Security for openkl 0.1.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.

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.1.0 This release

2 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