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

Uploaded CPython 3.10+Windows x86-64

chili_sauce-0.8.2-cp310-abi3-musllinux_1_2_x86_64.whl (37.8 MB view details)

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

chili_sauce-0.8.2-cp310-abi3-manylinux_2_28_x86_64.whl (36.0 MB view details)

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

chili_sauce-0.8.2-cp310-abi3-macosx_11_0_arm64.whl (33.5 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

chili_sauce-0.8.2-cp310-abi3-macosx_10_12_x86_64.whl (35.0 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: chili_sauce-0.8.2-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 33.0 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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.8.2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d5a6faae57ecda6932629d5ce55496bcdd9d8f4e6e6f17f1dba6874b6220d0a4
MD5 7f212b4e896a4f0133f3a92b777bf05b
BLAKE2b-256 4ae071f644ac14d7774fb9ba0b802648159e0441b871c3e494c58b6844d52988

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chili_sauce-0.8.2-cp310-abi3-musllinux_1_2_x86_64.whl
  • Upload date:
  • Size: 37.8 MB
  • Tags: CPython 3.10+, musllinux: musl 1.2+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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.8.2-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 883e867408636907449aac30f41318bfb26d731107e0ea3772ae982b6ffaae52
MD5 6434f32445abf5b42e4015a8589cbe87
BLAKE2b-256 d320b42d847a87f65278c354b39f4f8507f1aad62f248b5e3671caea86e7a502

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chili_sauce-0.8.2-cp310-abi3-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 36.0 MB
  • Tags: CPython 3.10+, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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.8.2-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f3d6f8f47ab19d6620580675b594903910d9228b90c5af4d3a9f5119025e823f
MD5 aed681af257c160e427ba1117cd5e247
BLAKE2b-256 c0affba5c61b56ff048e12144b986a149097fc079ae831d9e3d964825c6bcf0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chili_sauce-0.8.2-cp310-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 33.5 MB
  • Tags: CPython 3.10+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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.8.2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f75fbb4adeddeb63d1f529d65d24ac2edba668d162cf2dcfbd094611daa0d586
MD5 87c087ed1063aff987c0fce97b789dbe
BLAKE2b-256 42b969534dcead6b10faeff1e42a5dc841f0a5525967b8b82bb4eb1c5a24009f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chili_sauce-0.8.2-cp310-abi3-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 35.0 MB
  • Tags: CPython 3.10+, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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.8.2-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a1b5f51e8734613e9bfe7f1d7fac47390bed58e93c3210dab2cc3926b720e720
MD5 8180a594286939c3a5737f06c4410736
BLAKE2b-256 1b3cacc4e806de9e780bb5452bb2b989f2f476c7404175946ff7d98ed97738b8

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