Metadata-Version: 2.4
Name: openkl
Version: 0.1.0
Summary: Hardware-accelerated columnar data engine
Author: Aksel Aghajanyan, Aqwel AI Team
Maintainer: Aqwel AI Team
License-Expression: Apache-2.0
Project-URL: Source, https://github.com/Aqwel-AI/openkl
Project-URL: Documentation, https://github.com/Aqwel-AI/openkl/blob/main/README.rst
Project-URL: Issues, https://github.com/Aqwel-AI/openkl/issues
Project-URL: Changelog, https://github.com/Aqwel-AI/openkl/blob/main/CHANGELOG.md
Keywords: dataframe,columnar,analytics,sql,gpu,metal,cuda,pandas,csv
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Database
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: C++
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Requires-Python: >=3.10
Description-Content-Type: text/x-rst
License-File: LICENSE
License-File: NOTICE
License-File: licenses/LAPACK.txt
License-File: licenses/OpenBLAS.txt
Requires-Dist: numpy>=1.20
Requires-Dist: prompt-toolkit<4,>=3.0.43
Provides-Extra: ray
Requires-Dist: ray>=2.0; extra == "ray"
Provides-Extra: cloud
Requires-Dist: deltalake>=0.15; extra == "cloud"
Requires-Dist: pyiceberg>=0.6; extra == "cloud"
Requires-Dist: pyarrow>=14.0; extra == "cloud"
Provides-Extra: ml
Requires-Dist: torch>=2.0; extra == "ml"
Requires-Dist: scikit-learn>=1.0; extra == "ml"
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: hypothesis>=6.80; extra == "dev"
Requires-Dist: pandas>=2.0; extra == "dev"
Requires-Dist: mypy>=1.0; extra == "dev"
Provides-Extra: cuda
Provides-Extra: all
Requires-Dist: ray>=2.0; extra == "all"
Requires-Dist: deltalake>=0.15; extra == "all"
Requires-Dist: pyiceberg>=0.6; extra == "all"
Requires-Dist: pyarrow>=14.0; extra == "all"
Requires-Dist: torch>=2.0; extra == "all"
Requires-Dist: scikit-learn>=1.0; extra == "all"
Requires-Dist: numba>=0.58; extra == "all"
Requires-Dist: pandas>=2.0; extra == "all"
Requires-Dist: polars>=0.20; extra == "all"
Requires-Dist: hypothesis>=6.80; extra == "all"
Requires-Dist: pytest>=7.0; extra == "all"
Requires-Dist: pytest-cov>=4.0; extra == "all"
Dynamic: license-file

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
----------

* `Project README and usage guide <https://github.com/Aqwel-AI/openkl/blob/main/README.md>`_
* `Getting started <https://github.com/Aqwel-AI/openkl/blob/main/docs/getting_started.rst>`_
* `API stability and support policy <https://github.com/Aqwel-AI/openkl/blob/main/docs/API_STABILITY.rst>`_
* `Release notes <https://github.com/Aqwel-AI/openkl/blob/main/CHANGELOG.md>`_
* `Security policy <https://github.com/Aqwel-AI/openkl/blob/main/SECURITY.md>`_
* `Contributing <https://github.com/Aqwel-AI/openkl/blob/main/CONTRIBUTING.md>`_

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.

.. code-block:: sh

   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:

.. code-block:: sh

   python -m pip install openkl

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

.. code-block:: sh

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

Basic usage
-----------

.. code-block:: python

   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
<https://github.com/Aqwel-AI/openkl/blob/main/docs/getting_started.rst>`_.
OpenKL is alpha software; read the `API stability policy
<https://github.com/Aqwel-AI/openkl/blob/main/docs/API_STABILITY.rst>`_ 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
----------------------

.. code-block:: sh

   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 <https://github.com/Aqwel-AI/openkl/blob/main/LICENSE>`_.
See `NOTICE <https://github.com/Aqwel-AI/openkl/blob/main/NOTICE>`_ for the existing
third-party acknowledgments.
