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

Uploaded CPython 3.10+Windows x86-64

chili_sauce-0.9.1-cp310-abi3-musllinux_1_2_x86_64.whl (41.1 MB view details)

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

chili_sauce-0.9.1-cp310-abi3-manylinux_2_28_x86_64.whl (39.1 MB view details)

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

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

Uploaded CPython 3.10+macOS 11.0+ ARM64

chili_sauce-0.9.1-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.1-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: chili_sauce-0.9.1-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.20 {"installer":{"name":"uv","version":"0.11.20","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.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e19994a14b8e54ceed3169f327461546398f8ee178e899b7e58ba1b6f9a6b680
MD5 8db70898e675756e104dd8199df97cd8
BLAKE2b-256 f0630fc7e5ff96f4550560613679a2d96c7c80a54140ce849302495e6f752b61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chili_sauce-0.9.1-cp310-abi3-musllinux_1_2_x86_64.whl
  • Upload date:
  • Size: 41.1 MB
  • Tags: CPython 3.10+, musllinux: musl 1.2+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","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.1-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8f0903cc947d6381d12009f9cb61664ae9883ee05a54df08fe21e6f7df3c2703
MD5 a26b2c32b6928ccb632630f91a3b2826
BLAKE2b-256 2da34365ce8f0927bfd6c2833c0154d17035f696013d6f2250b65fed22783a51

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chili_sauce-0.9.1-cp310-abi3-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 39.1 MB
  • Tags: CPython 3.10+, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","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.1-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d64264a019c48a589d32e915aab53614ad271e1c1f123dedfae99f50c180bf50
MD5 012955315ec94c267e2437289190cd94
BLAKE2b-256 837d6e484c7df00e9d2278d656b8eb690567413863e26942344467894e549e94

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chili_sauce-0.9.1-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.20 {"installer":{"name":"uv","version":"0.11.20","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.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 81acd3e0efd2c4e73f555364fceda32f55d737dd2861e92fb111e585b4c8597d
MD5 21f01b3d548661c9896e726153ef7803
BLAKE2b-256 36b33159cbd884d1eb7d82023a5d903eec42658d90c5bb17ef613078612555f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chili_sauce-0.9.1-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.20 {"installer":{"name":"uv","version":"0.11.20","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.1-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c08c804f4d497b2f6666ce96957c9f49c81aa72e510dd154caaee656fd584314
MD5 029245d4baf369f7724ab73bbf9b9a53
BLAKE2b-256 2e91e05a086bece623d7363dc33ba6a5766006ab73a5de30d3b7d08d46cd0bc1

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