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

Uploaded CPython 3.10+Windows x86-64

chili_sauce-0.9.0-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.9.0-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.9.0-cp310-abi3-macosx_11_0_arm64.whl (33.5 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

chili_sauce-0.9.0-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.9.0-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: chili_sauce-0.9.0-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.9.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a2ece2878a9acd885f85ec179ddfc73c38db1bfa436e9f7e4c4c64db10373d91
MD5 c1c15de8d94033de5bbccecf760e6bee
BLAKE2b-256 390548aef19e52ac4e246c8a6999a3cee673dc1636d4b8d05ee2eca46cf19b79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chili_sauce-0.9.0-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.9.0-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 89d2580e769b6307e43d74756e99d77f150346689f85bad2cfbb9244d3505cb7
MD5 b8a45fc9b0e619d82d4442ac9da6d16e
BLAKE2b-256 bd00ccbf5491d0afd85bcf9debdf8440d35cf6daf89f75559f84deb4dacf7df8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chili_sauce-0.9.0-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.9.0-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9ccc35cc107801ccad052b8e4c242b9909e5631650fe15647b074cb02791e9cd
MD5 e40c9f1a0681390b347c15f213cfb3a2
BLAKE2b-256 b0547d8836cad595b073d6f788a9ea114e049518bb14ea8fcd3fd16b0c90710e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chili_sauce-0.9.0-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.9.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4eac98eeeccd628aaf1d964b2a08f468ab9ba6b76795b38c3731d4b4eb0fc649
MD5 3fd2aa3703a694a764913af345e944a3
BLAKE2b-256 4e1b0c0ccbaa27f2d3608efdbc46d8b417defff0a9909e43af30ce9ae4a04772

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chili_sauce-0.9.0-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.9.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 82cf83d93c6511558238604e672e787deddc8025b8e6fedb38f2d6ab4ae3a070
MD5 7630c10bf0b17fb8874b8e3e94c9db13
BLAKE2b-256 35d1ae60412a4d3ae649ce713dfbac007ce419b5efedbeba3c581ced14300ab5

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