Kalax Python Interface
Python bindings for Kalax, a high-performance time series feature extraction library written in Rust.
Overview
Kalax provides fast, parallelized extraction of statistical features from time series data. The Python interface offers the same functionality as the Rust core with minimal overhead.
Installation
[uv] pip install kalax
Quick Start
import numpy as np
from kalax import extract_features
x = np.linspace(0, 1, 100)
y = np.sin(2 * np.pi * 5 * x) + 0.5
data = [{"x": x, "y": y}]
features = extract_features(data)
API
extract_features(data)
Extracts features from multiple time series in parallel.
Parameters:
data(List[Dict[str, np.ndarray]]): A list of dictionaries where each dictionary maps column names to 1D numpy arrays representing time series data.
Returns:
- List[Dict[str, Dict[str, float]]]: A list of dictionaries where each entry corresponds to an input dictionary. Feature names are mapped to dictionaries containing computed feature values.
Available Features
| Feature | Description |
|---|---|
mean |
Arithmetic average of time series values |
median |
Middle value when time series is sorted |
variance |
Population variance |
standard_deviation |
Square root of variance |
minimum |
Smallest value in time series |
maximum |
Largest value in time series |
absolute_maximum |
Largest absolute value |
root_mean_square |
RMS value |
sum_values |
Sum of all values |
length |
Number of data points |
Example
import numpy as np
from kalax import extract_features
x = np.linspace(0, 1, 100)
y = np.sin(2 * np.pi * 5 * x) + 0.5
data = [{"x": x, "y": y}]
features = extract_features(data)
print(features[0]["x"]["mean"]) # Access specific feature
print(features[0]["y"]["variance"]) # Access another feature
Output Structure
[
{
'column_name': {
'mean': 0.5,
'median': 0.5,
'variance': 0.085,
'standard_deviation': 0.292,
'minimum': 0.0,
'maximum': 1.0,
'absolute_maximum': 1.0,
'root_mean_square': 0.579,
'sum_values': 50.0,
'length': 100.0
}
}
]
Requirements
- Python 3.12+
- numpy
License
MIT
Metadata
Release files for kalax 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| kalax-0.1.1.tar.gz | 14.9 kB | Without provenance | Details |
Built distributions (wheels)
Total release size: 5.8 MB
Release files / kalax-0.1.1.tar.gz
| Download URL | kalax-0.1.1.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d5aa8dfe8770485550fa857930f4f2d73c8eb15b14bdc4cad71c40daaeff51f
|
|
BLAKE2b-256 checksum How to use checksums |
3d0121b02295ce097b6afa151aee738b0a1ff2b2bd9fd9fb069c5f485e1f8f09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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 / kalax-0.1.1-pp311-pypy311_pp73-musllinux_1_2_x86_64.whl
| Download URL | kalax-0.1.1-pp311-pypy311_pp73-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 568.3 kB |
| Tags | Linux musl 1.2+ x86-64 PyPy 3.11 PyPy 3.11 7.3 |
|
SHA-256 checksum How to use checksums |
dfe18049a47f8613dfaea8a5d088b90c678c907d7d586e463972e83259c1bc76
|
|
BLAKE2b-256 checksum How to use checksums |
302124faff01def629ee2b050ad408ccc1999511cb8633de63e9ab1aa978e7c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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 / kalax-0.1.1-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl
| Download URL | kalax-0.1.1-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 537.3 kB |
| Tags | Linux musl 1.2+ ARM64 PyPy 3.11 PyPy 3.11 7.3 |
|
SHA-256 checksum How to use checksums |
774de16bec9c7496437d82787a6641d42d212a85deea541bb3da3c48cfb6a2a5
|
|
BLAKE2b-256 checksum How to use checksums |
30e1360189527cb4ba74d0422cfe83649d7e10482fb5e5eeb06050284bc56457
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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 / kalax-0.1.1-cp314-cp314t-musllinux_1_2_x86_64.whl
| Download URL | kalax-0.1.1-cp314-cp314t-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 566.1 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
0137515037b9a101f3d117e4c739eacb0acb65614fac8d5e29b5c9459660a35a
|
|
BLAKE2b-256 checksum How to use checksums |
20c2f332eb558020dd16dc5b1255a26088d3c6977b1e2047180e10eb8165df7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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 / kalax-0.1.1-cp314-cp314t-musllinux_1_2_aarch64.whl
| Download URL | kalax-0.1.1-cp314-cp314t-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 534.8 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ ARM64 |
|
SHA-256 checksum How to use checksums |
9b418e07b7676d7e3e7885e9b1d895ae1796dd956928bbf3cb26a7caa4d64469
|
|
BLAKE2b-256 checksum How to use checksums |
bf30f862fe8f45323fcb5073810feb78651a6117c0920d0510a14198d92dd983
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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 / kalax-0.1.1-cp313-cp313t-musllinux_1_2_x86_64.whl
| Download URL | kalax-0.1.1-cp313-cp313t-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 565.8 kB |
| Tags | CPython 3.13 CPython 3.13 free-threading Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
1856256b69fda0d1c725face1fbf7de81712138383ce1e4beed4a9d57cf6a71b
|
|
BLAKE2b-256 checksum How to use checksums |
f6823784977cac0af0c7eff3a84358b4f420351a3a7fee2d7acb1e1a0c1aeeef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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 / kalax-0.1.1-cp313-cp313t-musllinux_1_2_aarch64.whl
| Download URL | kalax-0.1.1-cp313-cp313t-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 534.3 kB |
| Tags | CPython 3.13 CPython 3.13 free-threading Linux musl 1.2+ ARM64 |
|
SHA-256 checksum How to use checksums |
eec76b0a428cf799997ac826f7d9dbda777f38f58cc875007edc81f167feb871
|
|
BLAKE2b-256 checksum How to use checksums |
cb005d0d402ed029cd47f987f6342e05e7716a94676d71bcf3bbffd0fd6e809f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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 / kalax-0.1.1-cp312-abi3-win_arm64.whl
| Download URL | kalax-0.1.1-cp312-abi3-win_arm64.whl |
|---|---|
| Size | 180.1 kB |
| Tags | CPython 3.12 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
bc3d38f8489563064af8873cf307f300c9ce391719802b09f3cb591205ff71d0
|
|
BLAKE2b-256 checksum How to use checksums |
b2276267bcd77a90f52d7fd83b85ffa70a8281aa6bac53cb04eec7fe26e9ab4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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 / kalax-0.1.1-cp312-abi3-win_amd64.whl
| Download URL | kalax-0.1.1-cp312-abi3-win_amd64.whl |
|---|---|
| Size | 185.8 kB |
| Tags | CPython 3.12 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
6f7f70636112a14d34de3b28baabbfd9effc6290ed5cb22189af891123f00da7
|
|
BLAKE2b-256 checksum How to use checksums |
103125bae72269644f4898c9a8eaf224ce5d3e0490f4354f0e5d03542ebf38dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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 / kalax-0.1.1-cp312-abi3-musllinux_1_2_x86_64.whl
| Download URL | kalax-0.1.1-cp312-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 565.9 kB |
| Tags | CPython 3.12 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
0ba5a51596580c55cc7239b7337153c66bdab0474d3ddf45213b86dcff0825ba
|
|
BLAKE2b-256 checksum How to use checksums |
697e9a1f1daa3ab1899ff9f35275c9e5b78de7ee4fb2072b45df5df7e0cf0453
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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 / kalax-0.1.1-cp312-abi3-musllinux_1_2_aarch64.whl
| Download URL | kalax-0.1.1-cp312-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 534.1 kB |
| Tags | CPython 3.12 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
4ad6a7c4af5b8ff5731504a4e45bbb985e9ab735c712f8fb72ee2b4b2f01b1b8
|
|
BLAKE2b-256 checksum How to use checksums |
38228d75033a1fdc2bdb1a97f3094be83bb1dffc6dec695b1f60548d63100bd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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 / kalax-0.1.1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | kalax-0.1.1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 369.1 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
eb2b77a9b8140343e80e9a2987f25abbf771c15303c9072e6ed82939ce0126fb
|
|
BLAKE2b-256 checksum How to use checksums |
a2669629cf356ba91552da8d75f7987d22a59b7a877592a2b6b019bdb7941dab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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 / kalax-0.1.1-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | kalax-0.1.1-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 352.3 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
d4caa7e4a206016b947aaa39fe16d5dbda6ea7a0775cd434d8dadd2ae6c8e7be
|
|
BLAKE2b-256 checksum How to use checksums |
f6a7c624cbdf7a757955c4368cd627a332c3e161494a3e351ab44b77e867cfce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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 / kalax-0.1.1-cp312-abi3-macosx_11_0_arm64.whl
| Download URL | kalax-0.1.1-cp312-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 310.2 kB |
| Tags | CPython 3.12 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9dcfb94820e2105fddf746d5eee2339328a16a008a04f1b5454b86be890081de
|
|
BLAKE2b-256 checksum How to use checksums |
17a352db658b6d648a92f14aefe197b61a2768f20e6628550d674944407ea250
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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 kalax 0.1.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.