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.5-cp310-abi3-win_amd64.whl (32.8 MB view details)

Uploaded CPython 3.10+Windows x86-64

chili_sauce-0.9.5-cp310-abi3-musllinux_1_2_x86_64.whl (44.7 MB view details)

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

chili_sauce-0.9.5-cp310-abi3-manylinux_2_28_x86_64.whl (37.1 MB view details)

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

chili_sauce-0.9.5-cp310-abi3-macosx_11_0_arm64.whl (36.7 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

chili_sauce-0.9.5-cp310-abi3-macosx_10_12_x86_64.whl (38.3 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: chili_sauce-0.9.5-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 32.8 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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.5-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4592963e0746d94fe079b25b32099e07b58635977e1b75ce728da2dd3a99662d
MD5 9c23b04240c211e14a69fe4385e477a8
BLAKE2b-256 d91ccff40e41cfd9e7efab00ee7debd733ddbd1162417d9cac2cb76bdcbc2882

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chili_sauce-0.9.5-cp310-abi3-musllinux_1_2_x86_64.whl
  • Upload date:
  • Size: 44.7 MB
  • Tags: CPython 3.10+, musllinux: musl 1.2+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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.5-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 469e6b2738a6ed5df455baeb4426adbb255466e198e2a80935367dc379092c2c
MD5 f29c4759c94d9aeedf75478c48b88551
BLAKE2b-256 72e22ed9b46fc3190b92ce72d80990923ee134682703668606fefdb027ead9cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chili_sauce-0.9.5-cp310-abi3-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 37.1 MB
  • Tags: CPython 3.10+, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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.5-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8703d824cb31f1e5277327405888950b110f6130e58d90110cb4b1a1a71c783b
MD5 e371b8334166c6c3fc6880f432f7d221
BLAKE2b-256 70908a293a573612abae6f796d568f3e08f6a8148f758f67a31b6506d03739f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chili_sauce-0.9.5-cp310-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 36.7 MB
  • Tags: CPython 3.10+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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.5-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ebfaea8379d66ea188c3357680d5cbab2a16a404c98beb9535e0d8e95dbcdec
MD5 989bef1991d24e34d608d6d65bc13c84
BLAKE2b-256 52180e74e58f48d357d9bc3c603b489a30209baa929335b0802800a8d749ec8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chili_sauce-0.9.5-cp310-abi3-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 38.3 MB
  • Tags: CPython 3.10+, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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.5-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c5cea9e737a024610ecbc10895a95d69acbb75edd0810a5e7f02219482406d86
MD5 53d8ba911cde156598a152a2c1424ef5
BLAKE2b-256 ff06a45360fb8de60a09d5efcce17f189fcdebcaa882774827b6f62a43965b80

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