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")
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chili_sauce-0.8.1-cp310-abi3-win_amd64.whl.
File metadata
- Download URL: chili_sauce-0.8.1-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 32.9 MB
- Tags: CPython 3.10+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e898a00740f6c51c0ec568d6e66c801f678417bda37c98edbdd0f03904890ea
|
|
| MD5 |
9decb32d52c057afed78f3999502dc12
|
|
| BLAKE2b-256 |
448540e92327eeffc3f5d7f0dc975460d80fe3679038e20a3a70aedc9a6b222b
|
File details
Details for the file chili_sauce-0.8.1-cp310-abi3-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: chili_sauce-0.8.1-cp310-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 37.7 MB
- Tags: CPython 3.10+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70f6ee7d3dda956e4a19db64b5fe9266869c14f4749138f13b12cd110f654926
|
|
| MD5 |
d508e3570c942ce4a8ab52dfcf24b51a
|
|
| BLAKE2b-256 |
008ebda63bd768d476614371d6675945eba4ecf8632456277fe8620e8554c666
|
File details
Details for the file chili_sauce-0.8.1-cp310-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: chili_sauce-0.8.1-cp310-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 35.9 MB
- Tags: CPython 3.10+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4faea733f98b98d787b688c727f6a84e088c418cb9043d26d0090a2164f3790e
|
|
| MD5 |
68ea56463d8c20ceeeef2626ca07b42e
|
|
| BLAKE2b-256 |
487af544fbbbf538f4ebcaeb4840fe3be953c8a980d04c1e52660c29ae2d23c7
|
File details
Details for the file chili_sauce-0.8.1-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: chili_sauce-0.8.1-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.12 {"installer":{"name":"uv","version":"0.11.12","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c6df291998bd3877008a306c4c72967569a1f3ba9dd9dae38fe2ec85ac08f6d
|
|
| MD5 |
0a8b527c2a1cd46dc28b3b89501b4fa5
|
|
| BLAKE2b-256 |
d0154219e6e05246e76719dcdfa41119470e319b184debe07f617446e15e01ac
|
File details
Details for the file chili_sauce-0.8.1-cp310-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: chili_sauce-0.8.1-cp310-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 34.9 MB
- Tags: CPython 3.10+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
935ea92f32e8413a3d5c9d3bb27108110e3aad310d00a943be0711ee827de18a
|
|
| MD5 |
192967364ae80c9b48000eb5f7ffa804
|
|
| BLAKE2b-256 |
a901a7288d60b0fb1cb82a44e127eca2adf194c6b1f3e53d8f5fc45bee4bb924
|