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-1.0.0.dev0.tar.gz (75.6 MB view details)

Uploaded Source

Built Distributions

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

kalix-1.0.0.dev0-cp39-abi3-win_amd64.whl (476.6 kB view details)

Uploaded CPython 3.9+Windows x86-64

kalix-1.0.0.dev0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (604.3 kB view details)

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

kalix-1.0.0.dev0-cp39-abi3-macosx_11_0_arm64.whl (509.2 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

Details for the file kalix-1.0.0.dev0.tar.gz.

File metadata

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

File hashes

Hashes for kalix-1.0.0.dev0.tar.gz
Algorithm Hash digest
SHA256 dbbd765434a3bb3c2a9911f15a03264e49dc2fa9b92a680219c3494e4ddd01f7
MD5 74bc22f85a181d8b540847aa4efc4915
BLAKE2b-256 a265515578e8201cb42ee414db8a099a19db546a73873b6335f0d1118f5951bc

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kalix-1.0.0.dev0-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 476.6 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-1.0.0.dev0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1e4a5867dd7f15e1eb47ad462a3b2bfc954bb70909e8423e5e0aa0a1c910f618
MD5 bd81980adffc317ec507913e8c610962
BLAKE2b-256 52aec93b5dc456764f8f250b2ed54939a9bdb7da8d19364146edfc66d1f7dae6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kalix-1.0.0.dev0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 96c325dbaa3ea9c5f25e617f6596695b83c83f34fb33b65ee56d1c9b1a49bb9b
MD5 13039fd04a9ffd963ed08a3498d504ac
BLAKE2b-256 dec3d5c5edb87644ca6fbd8150fcde39b4d8d7b3bbcb98da2471ee0beb36e8d0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kalix-1.0.0.dev0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fec72a0b8c70319f19deb98aaf959f76238bd7e314efe04060d15e12698b13d5
MD5 37e977af4b30156966e33c476206082d
BLAKE2b-256 2203185fd331cadc936ab6b5a6d1727106d03d0d58a4d34dfb4851d04aa9f5d4

See more details on using hashes here.

Provenance

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