Skip to main content

seine-rs

A rules/decisioning engine over Arrow dataframes — a Rust port of a bounded Drools (DRL) subset, differentially certified against real Drools 9.44.0.Final: every supported behavior is pinned by running the same scenarios through both engines, plus multi-seed fuzz campaigns (zero divergences to completion).

import polars as pl
import seine_rs
from seine_rs import Rule, fact

@fact
class Person:
    name: str
    age: int
    score: float

@fact
class Flagged:
    name: str
    score: float

adults = Rule("Adults")
p = adults.when(Person, Person.age >= 18)
adults.then_insert(Flagged, name=p.name, score=p.score)

people = pl.DataFrame({"name": ["ada", "kurt"], "age": [36, 17], "score": [91.5, 99.0]})
res = seine_rs.run([adults], {Person: people, Flagged: []})

pl.DataFrame(res.derived["Flagged"])   # facts the rules created
pl.DataFrame(res.firings)              # full audit trail
  • Bulk, columnar boundary: Arrow tables in (polars / pyarrow / pandas ≥ 2.2, zero-copy via the PyCapsule interface), Arrow tables out. Row-object lists (@fact instances, dicts, dataclasses, Pydantic models) work too.
  • Rules in Python or DRL: the Python builder compiles to DRL text, so both paths run the identical certified engine. Anything outside the certified grammar is a definition-time CompileError.
  • Full working-memory lifecycle: insert → fire → update/delete by handle → fire, each certified differentially.
  • No Python in the hot path: conditions, aggregates and salience are native; callbacks are observers over immutable results.

Install: pip install seine-rs — the import is import seine_rs.

Source, scenario corpus, and the full decision log (D-001…D-048): https://github.com/sl-agentics/seine

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seine_rs-0.4.47.tar.gz (419.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

seine_rs-0.4.47-cp39-abi3-win_amd64.whl (3.1 MB view details)

Uploaded CPython 3.9+Windows x86-64

seine_rs-0.4.47-cp39-abi3-musllinux_1_2_x86_64.whl (3.9 MB view details)

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

seine_rs-0.4.47-cp39-abi3-musllinux_1_2_aarch64.whl (3.7 MB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARM64

seine_rs-0.4.47-cp39-abi3-manylinux_2_28_x86_64.whl (3.7 MB view details)

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

seine_rs-0.4.47-cp39-abi3-manylinux_2_28_aarch64.whl (3.5 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ ARM64

seine_rs-0.4.47-cp39-abi3-macosx_11_0_arm64.whl (3.2 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

seine_rs-0.4.47-cp39-abi3-macosx_10_12_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

Details for the file seine_rs-0.4.47.tar.gz.

File metadata

  • Download URL: seine_rs-0.4.47.tar.gz
  • Upload date:
  • Size: 419.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for seine_rs-0.4.47.tar.gz
Algorithm Hash digest
SHA256 b8d24e9bd8ca4f415b3eb69e18d8ba6a64b1d1745351829e1e6d62e5e76120b4
MD5 86dc68556479f953494438fe276e46e1
BLAKE2b-256 5d25a5389896326a7f24b44aa52dec50ae87814b3c9b72938a3351524fe74acd

See more details on using hashes here.

Provenance

The following attestation bundles were made for seine_rs-0.4.47.tar.gz:

Publisher: ci.yml on sl-agentics/seine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file seine_rs-0.4.47-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: seine_rs-0.4.47-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 3.1 MB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for seine_rs-0.4.47-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 759f61097a197ae234e9664b6c473f9668b68da61e744b8ea29d251cb589d5c8
MD5 22d691b9c6d97b07ce01cdd36afc23ae
BLAKE2b-256 c15ee9cee6395cb91f3ff9d595fabac109cc342946e8d49adf5eb1cf913e1769

See more details on using hashes here.

Provenance

The following attestation bundles were made for seine_rs-0.4.47-cp39-abi3-win_amd64.whl:

Publisher: ci.yml on sl-agentics/seine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file seine_rs-0.4.47-cp39-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for seine_rs-0.4.47-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3a892eb299833451c8d6507af2ba7ae1e6dfcf546fbeaf4c6a18ac426e0c1361
MD5 5a69b41c976d6e3b274cea18109da6af
BLAKE2b-256 cd1f3de99221b226aaae5eefa022fade774521f81a06e1b689fa613840c1ca47

See more details on using hashes here.

Provenance

The following attestation bundles were made for seine_rs-0.4.47-cp39-abi3-musllinux_1_2_x86_64.whl:

Publisher: ci.yml on sl-agentics/seine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file seine_rs-0.4.47-cp39-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for seine_rs-0.4.47-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 3705442ee4223fcbab30e9b4e377f759fbdc76cde1cddbad334300de87af94ff
MD5 54e135815cae35fc0eb671703616b203
BLAKE2b-256 d5b28d206f370767b534e2b2bc015f6ef27acefe7d708ce041412119f98e3a53

See more details on using hashes here.

Provenance

The following attestation bundles were made for seine_rs-0.4.47-cp39-abi3-musllinux_1_2_aarch64.whl:

Publisher: ci.yml on sl-agentics/seine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file seine_rs-0.4.47-cp39-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for seine_rs-0.4.47-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 30beb72fe776c1effdef02e8ffe79eef6f6e4eafc7c8a65a72493e25db87f4c0
MD5 ec0c26b70a3441f40a099b4e35a83675
BLAKE2b-256 e795ac3cafab02a277f3c9e68743615fd832a566fd21b5fab7d2c13d537f8d9a

See more details on using hashes here.

Provenance

The following attestation bundles were made for seine_rs-0.4.47-cp39-abi3-manylinux_2_28_x86_64.whl:

Publisher: ci.yml on sl-agentics/seine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file seine_rs-0.4.47-cp39-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for seine_rs-0.4.47-cp39-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ef9bde6e587b47a0f085ae9b524bfded2a2ecb787277a7f96477fc39b9163443
MD5 fb5e160ff6fc8069da1dbe4c95e2ef2b
BLAKE2b-256 8422344816a8c2ea4a1acf44ed9e72a0f01b7d60bb0d78860a5cb7b04ab5f406

See more details on using hashes here.

Provenance

The following attestation bundles were made for seine_rs-0.4.47-cp39-abi3-manylinux_2_28_aarch64.whl:

Publisher: ci.yml on sl-agentics/seine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file seine_rs-0.4.47-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for seine_rs-0.4.47-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 273ac8921c7ca7f87dd5f3b0cf3c007baec858a4114412252a5e0971a61cdc82
MD5 93021636bdbf89b0b3d6c4c4c3d0f8dd
BLAKE2b-256 6ed1ffe2fe8ff5cd39f0348e87dd6b0511012a772f94a1ace37517f1a3caab06

See more details on using hashes here.

Provenance

The following attestation bundles were made for seine_rs-0.4.47-cp39-abi3-macosx_11_0_arm64.whl:

Publisher: ci.yml on sl-agentics/seine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file seine_rs-0.4.47-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for seine_rs-0.4.47-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 68056c50b8e9f6615263bd9c15625ce69aca1f5c8343d6a2d502edcfb23e8f86
MD5 411cb805278f1e1c844c118010e5773f
BLAKE2b-256 77e2044aec128557f2ef2a8bed9fe18fa6cfb3490469aa62ac0673d4847f92d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for seine_rs-0.4.47-cp39-abi3-macosx_10_12_x86_64.whl:

Publisher: ci.yml on sl-agentics/seine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.4.57

8 files

0.4.56

8 files

0.4.55

8 files

0.4.54

8 files

0.4.53

8 files

0.4.52

8 files

0.4.51

8 files

0.4.49

8 files

0.4.48

8 files

This release

0.4.47 This release

8 files

0.4.46

8 files

0.4.45

8 files

0.4.44

8 files

0.4.43

8 files

0.4.42

8 files

0.4.41

8 files

0.4.40

8 files

0.4.39

8 files

0.4.38

8 files

0.4.37

8 files

0.4.36

5 files

0.4.35

5 files

0.4.34

5 files

0.4.33

5 files

0.4.32

5 files

0.4.31

5 files

0.4.30

5 files

0.4.29

5 files

0.4.28

5 files

0.4.27

5 files

0.4.26

5 files

0.4.25

5 files

0.4.24

5 files

0.4.23

5 files

0.4.21

5 files

0.4.20

5 files

0.4.19

5 files

0.4.18

5 files

0.4.17

5 files

0.4.16

5 files

0.4.15

5 files

0.4.14

5 files

0.4.13

5 files

0.4.12

5 files

0.4.11

5 files

0.4.10

5 files

0.4.9

5 files

0.4.8

5 files

0.4.7

5 files

0.4.6

5 files

0.4.5

5 files

0.4.4

5 files

0.4.3

5 files

0.4.2

5 files

0.4.1

5 files

0.4.0

5 files

0.3.0

5 files

0.2.0

5 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page