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.3.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-cp39-abi3-win_amd64.whl (227.3 kB view details)

Uploaded CPython 3.9+Windows x86-64

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

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

kalix-0.2.3-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.tar.gz.

File metadata

  • Download URL: kalix-0.2.3.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.tar.gz
Algorithm Hash digest
SHA256 c66220adb841b6cbfcf92c15966ce6c31b0563034f938f2ae85f2d0a25447d84
MD5 371d217b82d66b24284a75908dc8db78
BLAKE2b-256 7e6dadf64b836821f827a3d017e72ca06dc499d094e71bf834e230024e05e713

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kalix-0.2.3-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 227.3 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-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 76735331c8f133433c127f6c1f34372bab9f2e482bb978511204792c0114d750
MD5 4f0a2c8f4b8209a260e697bc159f0d86
BLAKE2b-256 8ee5b164b267511fbb765c5924115cd569414ff73b6faf13325767f958b4b0b0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kalix-0.2.3-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 14ea1f0995878816291f98c27ba9baa4156014d302b5dc7e487e94e364affc09
MD5 230156bebed053b54bdbf7d417b8b50f
BLAKE2b-256 22127744b56f93187fdd640bd7cf3804ed778ee60c7dd78990201c5b327e2206

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kalix-0.2.3-cp39-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 290.2 kB
  • Tags: CPython 3.9+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kalix-0.2.3-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 56a8c97e59fca92d403afedaa27f9c85c6adb9e799845e2be2783703249bdf76
MD5 b7c9cde332c0a25f8dc3a5cc1daf6416
BLAKE2b-256 73bd56f92bd08962698d4e691eb01ddb5dca0686128b89dbae8f72af85c756ae

See more details on using hashes here.

Provenance

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