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

Uploaded CPython 3.10+Windows x86-64

chili_sauce-0.9.2-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.2-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.2-cp310-abi3-macosx_11_0_arm64.whl (36.6 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

chili_sauce-0.9.2-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.2-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: chili_sauce-0.9.2-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.21 {"installer":{"name":"uv","version":"0.11.21","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.2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a49c43a3f426e87c32d8610639320e7c05bd6a7820356aa1d4ccc042ed5fd891
MD5 d4b20e74b96f825156de29cabbb30864
BLAKE2b-256 9107202603320f0c23fc6007cabaf493b783b64163f5e71e39bd9ffa259541a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chili_sauce-0.9.2-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.21 {"installer":{"name":"uv","version":"0.11.21","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.2-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 098991f6bdce872cdda42233b24f10e2ff057f1e9f07b99628461608eca46789
MD5 ca2aba01d66dc07542a942c028ae16b6
BLAKE2b-256 e6be1c482836ea1e9fc03d6b33eb126e90920a2cee8b87afa0c1a2c738efd474

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chili_sauce-0.9.2-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.21 {"installer":{"name":"uv","version":"0.11.21","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.2-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2d85f6cbf3ebd7737c30df607453f11b9c6cc292e85e7e13ba6f124b3f36bba0
MD5 6aaf4b0525e15a5ca8f1ab1763561057
BLAKE2b-256 324c1f325804c00b7013e59313233c96b486ed80f773822aad6a29ddead3460d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chili_sauce-0.9.2-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.21 {"installer":{"name":"uv","version":"0.11.21","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.2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a24a9ae5558d9b14236fa57c7e9f6c370f5ce583b04423d468199105a26d61eb
MD5 420f647a9b44ae0f3d6083e461f1a2c2
BLAKE2b-256 54e39d5b27e5ea24e6582bf24a76cc8aac3d220b1cd0df0d0b7960cda37445d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chili_sauce-0.9.2-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.21 {"installer":{"name":"uv","version":"0.11.21","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.2-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e5c6a759fa8ec1fbb262ad21d5f1a89b36a99b2eb2dc7802790147335a0dd543
MD5 b68f2d01275893e7a9a84b925d83c8f9
BLAKE2b-256 401531e3406a05c346b0af1c3a7ad4945451fbd65439f19d0739edae13b7292f

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