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.44.tar.gz (395.4 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.44-cp39-abi3-win_amd64.whl (3.1 MB view details)

Uploaded CPython 3.9+Windows x86-64

seine_rs-0.4.44-cp39-abi3-musllinux_1_2_x86_64.whl (3.8 MB view details)

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

seine_rs-0.4.44-cp39-abi3-musllinux_1_2_aarch64.whl (3.6 MB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARM64

seine_rs-0.4.44-cp39-abi3-manylinux_2_28_x86_64.whl (3.6 MB view details)

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

seine_rs-0.4.44-cp39-abi3-manylinux_2_28_aarch64.whl (3.4 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.9+macOS 11.0+ ARM64

seine_rs-0.4.44-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.44.tar.gz.

File metadata

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

File hashes

Hashes for seine_rs-0.4.44.tar.gz
Algorithm Hash digest
SHA256 1d2997f2388183e6c81c73d700b08667de2adcd103a428cd785b2f3a789d0711
MD5 0b416c04d3fa1394e9865cc385cacc45
BLAKE2b-256 a9c1f31d9d6a6add50821854856d399834b18d23c91e4b4dc9c7ce1fb2e09ca5

See more details on using hashes here.

Provenance

The following attestation bundles were made for seine_rs-0.4.44.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.44-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: seine_rs-0.4.44-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.12

File hashes

Hashes for seine_rs-0.4.44-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 874bff6039f7200466fc688c0b1b56ff212bdf9d77395d397ca36a24a79c2518
MD5 82f59d24562ee23bb639b707e264696b
BLAKE2b-256 7454371365e91ab4caf4c115aa8b6cdd1d51ebbc4eb296f8f5268630734a300e

See more details on using hashes here.

Provenance

The following attestation bundles were made for seine_rs-0.4.44-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.44-cp39-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for seine_rs-0.4.44-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9e50c7a3b817f2778f82ff42922b56b6a2ad8faad22cc71c56db71f3760fd51a
MD5 fbc3a4e73a41a0a8532cf877b1f781d0
BLAKE2b-256 1cdfb15793d8690fe146345775bab96bdd2de62c940d95506ee2c827c8e52f8b

See more details on using hashes here.

Provenance

The following attestation bundles were made for seine_rs-0.4.44-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.44-cp39-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for seine_rs-0.4.44-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 0c07c271822e6cc2338132486b0a4394710259279210f296ab9cb3c23dfa49e7
MD5 61396480d88d8e814e1aaa182853e707
BLAKE2b-256 165a7979738a1e463fc92faba2889bd0d43c543b5fb94c49472f869b2be1e1da

See more details on using hashes here.

Provenance

The following attestation bundles were made for seine_rs-0.4.44-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.44-cp39-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for seine_rs-0.4.44-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dfa8549ec34a4bc26588b5b98e4dbecca5415c11fff4befa38c55d5ae6b1e9ea
MD5 dc79f3e4b5fa960690378d2bbda8b959
BLAKE2b-256 f6d8aef894ff0e630637871768dd6c9ac7501ef6d13758a623a3837c5f3f325c

See more details on using hashes here.

Provenance

The following attestation bundles were made for seine_rs-0.4.44-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.44-cp39-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for seine_rs-0.4.44-cp39-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 079a7e4c21ddcc45fd0417449077781ae67f814c719a8e5796fac942315a7a41
MD5 2042f6d60bbb080a67f23a63a035528c
BLAKE2b-256 b2b654cf0ddb87bef6f9a6f888458f7c375b55ccfff551132b05e7d9f88b21d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for seine_rs-0.4.44-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.44-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for seine_rs-0.4.44-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 178f8b18be7899b6485fb1adb8f35a587f5609abfcf72bbfbfc126d5ba7782d7
MD5 5942871e5294ab6e7bae965170e743cd
BLAKE2b-256 f7c1d5632756ae180a9c46e86f79186ba05e5bf7cd41e9c011ded432dc0cb700

See more details on using hashes here.

Provenance

The following attestation bundles were made for seine_rs-0.4.44-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.44-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for seine_rs-0.4.44-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1e9c40518949be8010599bb6005a052e4456944e4a9ef48780c311b2db694d19
MD5 b7268d94e9e3aa4e55ad8851432e83e5
BLAKE2b-256 84687f0e28a92bab6ae156a389a8caeaf32b245cf5a7a1ca45cb47e49999f608

See more details on using hashes here.

Provenance

The following attestation bundles were made for seine_rs-0.4.44-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

0.4.47

8 files

0.4.46

8 files

0.4.45

8 files

This release

0.4.44 This release

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