Kalix in Python¶
Kalix ships as a Python package on PyPI with the full API documented there. It wraps the Rust engine, so you can run models and read their results straight from a script or notebook.
Install¶
A quick example¶
Run a model and load its results as a pandas DataFrame:
import kalix
import pandas as pd
# Run a model and write the results to CSV
kalix.simulate("my_model.ini", output_file="results.csv")
# Load the results
results = pd.read_csv("results.csv", parse_dates=[0], index_col=0)
print(results.head())
For a full walkthrough, see Running from Python.