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

Uploaded CPython 3.9+Windows x86-64

seine_rs-0.4.40-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.40-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.40-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.40-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.40-cp39-abi3-macosx_11_0_arm64.whl (3.1 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

seine_rs-0.4.40-cp39-abi3-macosx_10_12_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: seine_rs-0.4.40.tar.gz
  • Upload date:
  • Size: 382.6 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.40.tar.gz
Algorithm Hash digest
SHA256 6065d72d29b43fdd9ec5a02c10e090c41abcf43990084da3a13e1e5a0bd83007
MD5 609b352df9c88ea61bf84efd6441db2e
BLAKE2b-256 ae87e2367569a79ad40240e00dcc737beeb60af08d98b32b23835feba0316fa1

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: seine_rs-0.4.40-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.40-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f5fca88bfcbf188a7f53ee03fb2a014c4007ea63de4feff2b4e9277d3c5f9f5d
MD5 122443d0ad8e545ff43773d8f33ac491
BLAKE2b-256 644dd969fb00571b650539c3b852a6d27e77597450b71f00f318175646a6b0fe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.40-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 33810089f882f706caeed66e84e5b42ba8d665c673f6381fa3959342bacb4185
MD5 5fbdc4d13a038dcb557850dd035ccbda
BLAKE2b-256 f830f3c1ac9c00512cb6a8225b535e0e9f5f45a9fb2f2e7b8bc83d466334664c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.40-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 299771e23e437f24436de12dd70c3bb36952ba6f7e41a692b50394202b6d8fc8
MD5 93f407f1dee6116e75f2e2450bb7fefc
BLAKE2b-256 d82078244f9b1b1b9ea0e56d8b6185a4e18509a70f835ae8aea2461bbef72229

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.40-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ef50f85527a51848543cf80b4250266899f52ba00cd7bc7c5919c855e9bd9f3b
MD5 7be7536cda2d06e0d25a71580d10f579
BLAKE2b-256 18904f6972c707f2010e3ec5d4f2a3e8c91d78df6f8dffaf0340d7bd1e2158f0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.40-cp39-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9505c10ce2384ebbdcea191dd81782b2eaa2abccaf5c47a4b4964ac10e8c87ac
MD5 d7f1ee37e87c8a4decfbefa923663bc6
BLAKE2b-256 4a25700a4ebde30f07fa2a085e16d0aa20f13f9201dc9979ac84f6d006cf6c13

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.40-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 811b08ee441b693dc883412d377e4dc56d91e61dedee9b0e320d1e5ddd7815f5
MD5 a96fe7a462fd8c3b554b33d592470471
BLAKE2b-256 fb0a147e1f8b68bf8d7e9131ee39b54e1fe2f58c68ebbb83e4ca7c0c7009ce0e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.40-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2e957b8f88622356dbb105ccf959fd75b775fe18265fba32f2bf198d8dbe74e8
MD5 d6e6fbbd562994544d8d2ddf74208afa
BLAKE2b-256 235078eec00189dd6e2df26c692891f2c7a3e0fd9c4aff3c9575af70090e62cc

See more details on using hashes here.

Provenance

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

0.4.44

8 files

0.4.43

8 files

0.4.42

8 files

0.4.41

8 files

This release

0.4.40 This release

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