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

Uploaded CPython 3.9+Windows x86-64

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

File metadata

  • Download URL: kalix-0.2.4.dev1.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.dev1.tar.gz
Algorithm Hash digest
SHA256 ec2b72d84fd748d2f020b9b6bae751292a49a7fd06fb265e80a71289dc0c4e11
MD5 32e9eb941de596030dc873668d7c3937
BLAKE2b-256 568dc9c052a3e6778c3ead44c8bfa60b88ed014acef8c58eadeeaa9e83d32a93

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kalix-0.2.4.dev1-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.dev1-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5de431d880cc3543e40be4f2f624f346f9e7d22736522ca7e54ab65acde45b04
MD5 95a2a7c6c0a15b8a370a7b41fd46fc09
BLAKE2b-256 2077cdc5f71cd99c9776eec4d66e5d82afa13cc0d7c8e8baac8d0b41e1149cda

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kalix-0.2.4.dev1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 54a402fba924ba64a5abc8b8fb930007ec81e91c61076ce6deb66de45f7044c2
MD5 1e189a805533e1b8a5351096880e2397
BLAKE2b-256 556b98cf3b1d262be175304bc3a8c03624d7b527ad8a989c8662827655d6c66d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kalix-0.2.4.dev1-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d4ca66e4f0333a15df1bbd8d01d83d0780a7683adee29c3651d529b46501552f
MD5 3773bb5b67eee0c9ca4339e625dda772
BLAKE2b-256 5ed213d08b1fbb9257cb7336a5686664f0b5632c68fc6119d3243211a3138b19

See more details on using hashes here.

Provenance

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