Skip to main content

Python bindings for the Chili engine (EngineState)

Project description

Chili Sauce 🌶️

Python bindings for Chili's EngineState, powered by PyO3.

Installation

pip install chili-sauce

Requires Python ≥ 3.10.

Quick Start

from chili import ChiliEngine

engine = ChiliEngine()

# Evaluate expressions
engine.eval("1 + 2")  # => 3

# Variable management
engine.set_var("x", 42)
engine.get_var("x")  # => 42

# Work with Polars DataFrames
import polars as pl

df = pl.DataFrame({"a": [1, 2, 3], "b": [4, 5, 6]})
engine.set_var("df", df)
engine.get_var("df")

IPC / Remote Queries

# Open a handle to a remote Chili process
h = engine.open_handle("chili://:1800")

# Send synchronous queries
engine.sync(h, b"1+1")                # bytes  — sent as a raw string query
engine.sync(h, ["set", "a", 2])       # list   — sent as a function call (func, args…)

Features

  • Evaluate Chili or Pepper expressions from Python
  • Variable management — get, set, delete, and list variables
  • Polars integration — pass DataFrames bidirectionally between Python and Chili
  • Partitioned storage — write and load date-partitioned Parquet tables
  • IPC / TCP — start a TCP listener for remote connections
  • Tick plant — built-in pub/sub infrastructure for real-time data

Type Mapping

Python type Chili type
int Int
float Float
bool Bool
str Symbol
bytes String
None Null
list MixedList
dict Dict
datetime.date Date
datetime.time Time
datetime.datetime Datetime
polars.DataFrame DataFrame

Development

# Build and install in development mode
maturin develop --release --manifest-path crates/chili-py/Cargo.toml

# Run tests
pytest crates/chili-py/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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

chili_sauce-0.9.3-cp310-abi3-win_amd64.whl (34.3 MB view details)

Uploaded CPython 3.10+Windows x86-64

chili_sauce-0.9.3-cp310-abi3-musllinux_1_2_x86_64.whl (41.2 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ x86-64

chili_sauce-0.9.3-cp310-abi3-manylinux_2_28_x86_64.whl (39.2 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64

chili_sauce-0.9.3-cp310-abi3-macosx_11_0_arm64.whl (36.6 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

chili_sauce-0.9.3-cp310-abi3-macosx_10_12_x86_64.whl (38.2 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file chili_sauce-0.9.3-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: chili_sauce-0.9.3-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 34.3 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for chili_sauce-0.9.3-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 730c9d6086c8e919c49e76f378ac8ced8b1ca0dd7d42fe30461cd241b10cb48b
MD5 3899fc120c48e9792f06aa2c7fb7d550
BLAKE2b-256 4dcd15b1b3a06e94a80b031670635358a179b6b40c15871af2a8f292cda65bb0

See more details on using hashes here.

File details

Details for the file chili_sauce-0.9.3-cp310-abi3-musllinux_1_2_x86_64.whl.

File metadata

  • Download URL: chili_sauce-0.9.3-cp310-abi3-musllinux_1_2_x86_64.whl
  • Upload date:
  • Size: 41.2 MB
  • Tags: CPython 3.10+, musllinux: musl 1.2+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for chili_sauce-0.9.3-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d9878b48623426217312e0529bac33be73682b9290dce407ec10c79c91af5e7b
MD5 3ca5451943533afbc9a0100f8ad6ff4b
BLAKE2b-256 184c27b47041664b0a09cbf461f00466cd00dc53a453fe3414cccbe140aa61de

See more details on using hashes here.

File details

Details for the file chili_sauce-0.9.3-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: chili_sauce-0.9.3-cp310-abi3-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 39.2 MB
  • Tags: CPython 3.10+, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for chili_sauce-0.9.3-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 21388466e2529587ae2905284b5181eb94b3428ea69e9b1af409d9ec6b7a1bdc
MD5 77453370b7fda29932d6776dfcb8a141
BLAKE2b-256 ad957fd293286ca57773031a0d1bf174da2c5acd375534024c0abddbb6a3813e

See more details on using hashes here.

File details

Details for the file chili_sauce-0.9.3-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: chili_sauce-0.9.3-cp310-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 36.6 MB
  • Tags: CPython 3.10+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for chili_sauce-0.9.3-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 88854102574f929214ffc0518a65c5a7b4746a3dfe3ddd4abb006b3605d3282e
MD5 ea17dac56e600e17b73b53ffea4b3324
BLAKE2b-256 a137d27eabc87bbe4a7cba57ac01f9da99723eda3987c6944e632811ed629b01

See more details on using hashes here.

File details

Details for the file chili_sauce-0.9.3-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: chili_sauce-0.9.3-cp310-abi3-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 38.2 MB
  • Tags: CPython 3.10+, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for chili_sauce-0.9.3-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 393c99b9caea2618da98623390a6841974bd5ed51a9f89cd5ea2096b864bdd03
MD5 256ef846188eda0372dc69e254f75248
BLAKE2b-256 fac5f21087ecb26e5c09d1acf807a4ff13b5c7fdd130a9830a27389e7c937c86

See more details on using hashes here.

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