Skip to main content

Python interface for Kalix: hydrological modelling and Pixie (Gorilla-compressed) timeseries I/O

Project description

kalix (Python)

Python interface for Kalix, wrapping the Rust implementation via PyO3.

v0.1 ships read/write of the Pixie format (Kalix's Gorilla-compressed timeseries format, .pxt / .pxb paired files) as pandas DataFrames.

Planned for later releases: model loading & simulation, programmatic model building, optimisation.

Install

pip install kalix

Usage

import kalix

# Read a .pxt/.pxb pair into a DataFrame
df = kalix.read_pixie("results.pxb")
print(df.head())

# Write a DataFrame back out
kalix.write_pixie("out.pxb", df)

The DataFrame index is a UTC DatetimeIndex; each column is one timeseries.

read_pixie accepts either extension (or no extension) and finds both files:

kalix.read_pixie("results.pxb")  # same as
kalix.read_pixie("results.pxt")  # same as
kalix.read_pixie("results")

Building from source

Requires Rust (1.70+) and maturin.

# Editable install for development
cd python
maturin develop --release

# Build a wheel
maturin build --release

Tests

maturin develop
pytest python/tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kalix-0.2.3.dev5.tar.gz (70.5 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

kalix-0.2.3.dev5-cp39-abi3-win_amd64.whl (227.4 kB view details)

Uploaded CPython 3.9+Windows x86-64

kalix-0.2.3.dev5-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (365.4 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

kalix-0.2.3.dev5-cp39-abi3-macosx_11_0_arm64.whl (290.2 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

Details for the file kalix-0.2.3.dev5.tar.gz.

File metadata

  • Download URL: kalix-0.2.3.dev5.tar.gz
  • Upload date:
  • Size: 70.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kalix-0.2.3.dev5.tar.gz
Algorithm Hash digest
SHA256 0cd0c026fe276ced47421efd16706c7d259d11a76ecd91b2d28d63292b2ea49b
MD5 0ae86f4788d06dd600aa8d78009bd94b
BLAKE2b-256 e87ebb6dceb05f99e5817b4c5d93c9ce47e7e9e62a8a80d70dfb4e407699049a

See more details on using hashes here.

Provenance

The following attestation bundles were made for kalix-0.2.3.dev5.tar.gz:

Publisher: release.yml on chasegan/Kalix

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kalix-0.2.3.dev5-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: kalix-0.2.3.dev5-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 227.4 kB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kalix-0.2.3.dev5-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4432e54979e7fb8d4008b74a8379ce48e562edb9d06c526f09fab5d9fd6adabc
MD5 f4e10bf13d05f1ba851ae5517cd9ff27
BLAKE2b-256 cfe53f00f0e64585e9e7a92e3b346acc40f6f5e622d3ee9065b1651c7580f7c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for kalix-0.2.3.dev5-cp39-abi3-win_amd64.whl:

Publisher: release.yml on chasegan/Kalix

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kalix-0.2.3.dev5-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for kalix-0.2.3.dev5-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 58555db2a84545e62801c86437305f1e14cfe0e7111d01577afb4028f39357a0
MD5 233a49e06682ec37225a2bf688ba7420
BLAKE2b-256 9f4bd9420969d096d613844b05ce473b172b4f9bf23edf5cfb86efae8b67eacd

See more details on using hashes here.

Provenance

The following attestation bundles were made for kalix-0.2.3.dev5-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on chasegan/Kalix

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kalix-0.2.3.dev5-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kalix-0.2.3.dev5-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 34119352b2b5d8458fce0515d1286560787a51815ce77961c6b9c06bb173471a
MD5 ff82c1caa3b5393a8a838999893f05e2
BLAKE2b-256 03a28c117b364144d89c6fcc2e248ca14613dcfb38fbe1090beb7d25a41f4fda

See more details on using hashes here.

Provenance

The following attestation bundles were made for kalix-0.2.3.dev5-cp39-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on chasegan/Kalix

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page