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

Uploaded CPython 3.9+Windows x86-64

seine_rs-0.4.46-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.46-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.46-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.46-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.46-cp39-abi3-macosx_11_0_arm64.whl (3.2 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

seine_rs-0.4.46-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.46.tar.gz.

File metadata

  • Download URL: seine_rs-0.4.46.tar.gz
  • Upload date:
  • Size: 417.7 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.46.tar.gz
Algorithm Hash digest
SHA256 ec1a482c31dcdf393b54dfb70982c54140aa27ce904d05bb8bb22fc8c38ae650
MD5 8c3a9cdaa525d6d11ffaf765ecc09adb
BLAKE2b-256 0995b5d999ad75b47c8ce39a34be3fd3cd69c9984809a98826c927413b5fad16

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: seine_rs-0.4.46-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.46-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 732d46c92b90a70cb6955ef14bdc5cdb966c53d012d045077548c2cf7ca50036
MD5 083319c31921695dfcdb48b66453a293
BLAKE2b-256 ccb3fcf8a4900b5bb71155b73e83c1b4900d814ef18f5f870ab8c89d201f23e5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.46-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 30d3d7b2ea337de1f64355275bfb8394127773c4b8136144e5fd58a84675bebb
MD5 ab5d55d51358a7ea424c01a008723dca
BLAKE2b-256 e938227c53922d8778113468bb27287d18c712e236c480166893f30c2dd48ca1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.46-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 7e3fce0eb5ac1698c2410e5ef19088a5c40907b7e5e8951fe7b50fb0a083d743
MD5 c3f9a9424d0ee2f3a8e42fc8d1054c29
BLAKE2b-256 eacd18b218fbd99fdd2a4d2f03dee85637b06a713d9b2212bef71a402794bfd0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.46-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 88e29951c729fcbe818d18313fa18e0f5be36a28d4606f3e2ea9044596d2d80e
MD5 fcde34a892ab508e284ab0e4ecec9dde
BLAKE2b-256 0e9a7d90db79aac9e8401a61a2f154666c333c41a26bb6c19726d6d151f0e8f4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.46-cp39-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2acdb05061f8ae2b983a2ebf08ef62068bafe35b244eeaada57feffb4d117c18
MD5 d3fce13140e0ce79eebf81928a31e5f4
BLAKE2b-256 d941a5879797d61709edb5b7f9ac5bdb6c953b22b251b38e733793678ba025dc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.46-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5f54eec03ab517a27156d33fb6099bc80017add750cf44c25d4a785e6ca17c88
MD5 0588a0ce82543968116f319db4c3bfc7
BLAKE2b-256 06842668d097964d270cdd49b7401c9470c8827bff0dfc2c5fd377e8485ce25e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.46-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 508f8b456f0e1a4e0f896b4e00c2eef5931ec4f509b5c6e489c480692ca54a88
MD5 2815668b14aad651521a9959d336fe1d
BLAKE2b-256 abbd6e58ff938afadbdfdd58627cbd636cd26cd36e1be015d25e7354cdf55fa1

See more details on using hashes here.

Provenance

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

This release

0.4.46 This release

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