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.

Current functionality:

  • read and write Pixie files (.pxt, .pxb)

Planned:

  • model loading & simulation
  • programmatic model manipulation and 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.4.dev2.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.4.dev2-cp39-abi3-win_amd64.whl (227.5 kB view details)

Uploaded CPython 3.9+Windows x86-64

kalix-0.2.4.dev2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (365.5 kB view details)

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

kalix-0.2.4.dev2-cp39-abi3-macosx_11_0_arm64.whl (290.4 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

Details for the file kalix-0.2.4.dev2.tar.gz.

File metadata

  • Download URL: kalix-0.2.4.dev2.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.4.dev2.tar.gz
Algorithm Hash digest
SHA256 7a732f289890dd8f95e640a1c4cd6cb95d926490c8316cacdf643a7d5b597d75
MD5 24a2110f6ceea8a874a1469f3dbb8183
BLAKE2b-256 ff2910e996f8fdff3fd377e03db3ebf9e7e3f493b9ac021d0d80eb5653b994ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for kalix-0.2.4.dev2.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.4.dev2-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: kalix-0.2.4.dev2-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 227.5 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.4.dev2-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 384c60b16f60142528fdb17d8e62c533e3d7b64c2e706a7675e21848bf91c8c7
MD5 3a773bb51b1b7201aae098b104754f28
BLAKE2b-256 b18d485f119466e8a159f9f0637add8462a45cf349c761ba5193702c50a67d66

See more details on using hashes here.

Provenance

The following attestation bundles were made for kalix-0.2.4.dev2-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.4.dev2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for kalix-0.2.4.dev2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4ddc74c9d480502ed016f56c26e402a10689ccb0d60f5cfddeb96ffda93a556c
MD5 44942c18b0126c5b1ed392056d5f6615
BLAKE2b-256 87a8794490d4af941b2bcf2ad8315fc2d39ea268667b89d1e1cc17c3e5dd1587

See more details on using hashes here.

Provenance

The following attestation bundles were made for kalix-0.2.4.dev2-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.4.dev2-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kalix-0.2.4.dev2-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7046853defaf7c930b16fa6424e61e21e8ced072e34c68623b384a8d759ace3c
MD5 9b873b57ddf8c65cb7167d58b07b6013
BLAKE2b-256 6187c747d98dcb5a42f21c2ca9f38b48861a332e562dcf33faba552c3b48f944

See more details on using hashes here.

Provenance

The following attestation bundles were made for kalix-0.2.4.dev2-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