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

Uploaded CPython 3.9+Windows x86-64

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

Uploaded CPython 3.9+macOS 11.0+ ARM64

seine_rs-0.4.42-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.42.tar.gz.

File metadata

  • Download URL: seine_rs-0.4.42.tar.gz
  • Upload date:
  • Size: 391.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.42.tar.gz
Algorithm Hash digest
SHA256 6cc8697436d0b07e3ceb54a785746f73be21e2bd42d8fdd45e74018dfa83b717
MD5 2df96616dffb0feecf2018cc975071a5
BLAKE2b-256 f9342626446345dfb761d370b1621dd02fdbf02d3988c323bf26153e88cb9f1b

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: seine_rs-0.4.42-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.42-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ef02038647d0e60ff3cb2c8de143f2e02e641c0e10a42f31480cd859f9f39fd0
MD5 c8c5129afe7d300e6c3d6239c90591c5
BLAKE2b-256 56815e0dfd51db01c4193a5d2e691688280b8d72e51e5cb34bb0c13a10b72480

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.42-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 87bd2f1d04237fb15e7ca8c3819e0eae82d3ccbfb907b05b684676d00d5d5c93
MD5 db06994c52bab2204e27eea107b0cd38
BLAKE2b-256 f4cfb69e2ba4c5f1f41330963451849ac62282939b96cc9b7720727ba6d9ebb0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.42-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 84a5ce3a76c6cad2a5f491d46211c2b8b2f925e5d467a807117776ed44448c21
MD5 c38dd8dba81bb1b630c8732a886bec92
BLAKE2b-256 5ea21dc76bd7eb7832e4c40cf72b6596be07cff7d9d8feed8475feafeca60be5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.42-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 170f87c1582ecad6a0ff9428089880d6abd5f70a31b3ea1a65eeed1d22137f04
MD5 3f1d1b8f688661ce9f211e79128db986
BLAKE2b-256 e582ebe24bb8710a663c2252e75f5c0dc737da08571f04960f04bf5cb86479d0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.42-cp39-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 39f4529185a4c3abf5e6b72e24b315b843400e59f432cdebde72f40b0588fbde
MD5 42171bec4839b7fb8b567b1dd46d31a6
BLAKE2b-256 ee32ff9ef17427eb543f69edaeabee52f7a3d629dd2d70eef9e5fdcbb644ad2f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.42-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 37031c3911949ea5e0de13088ca4c75c2baed3f9605290cec622f2f86998a291
MD5 4fc6f869b7ef8ec5909d09ed39fb6e9d
BLAKE2b-256 78a9939b54af719e618ae42ffe93c288c80c8239102ca8df8f852ab89f3e272a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.42-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 adbc189aa08dd04505495c5849b5373caa0d3169bf64cfffc71651f0166c08f1
MD5 c6ff14b78f0841e2be7cd8f81526ea1a
BLAKE2b-256 8d82401257643d9f8f34ce1557e97026e84fe7ef5ffdfbf8e2ad508d1956deb7

See more details on using hashes here.

Provenance

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

This release

0.4.42 This release

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