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

Uploaded CPython 3.9+Windows x86-64

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

Uploaded CPython 3.9+macOS 11.0+ ARM64

seine_rs-0.4.39-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.39.tar.gz.

File metadata

  • Download URL: seine_rs-0.4.39.tar.gz
  • Upload date:
  • Size: 380.3 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.39.tar.gz
Algorithm Hash digest
SHA256 49f6978fc926d0665caa21cfcdf7027eefc79fa03b67bd567ede92f75bbcf182
MD5 46b7939e653bf2fc686fd669cf110089
BLAKE2b-256 fb92bd7e8cd36a17ceaff4e6c7cf325c167c3542caf70d52e81194ca4be3e58c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: seine_rs-0.4.39-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.39-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2a51f8b3fb70369a8b0978a015bec1d1313330bc5bca50bf1ee312af3a248299
MD5 c273e791a82e3d6cabf757d3b75214aa
BLAKE2b-256 12d226a4853c45f5b118aa10344985294bb3ee92b03946ac27a87b35207a52ed

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.39-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1f17d7dc506aad05e4ecdfd96c1e703d62f8fc705068a8b68a4447283c68872f
MD5 89c27c0358c9473ddcf9700757317172
BLAKE2b-256 e1ea7e4c3417d99216df01d429769a18a775f3159794258e88bf939e3f0a1bc3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.39-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 67e110ccda6993d49f9fd49790d50486b743f485ed5ce3faf9aa3d1e8bc7869e
MD5 05233c0c7591c7d166fa9ecbb6cb97cb
BLAKE2b-256 eff53e467d9ed7d8ef3ec61c692a2fa67ba0eea013d5aec8cd7766bd80c282d8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.39-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3d06b98e72e472df611a01bde0bf6c5b666093b3fd17d54470721d42a019c269
MD5 1436520ff6df4628f71842db967ea4a8
BLAKE2b-256 0238bbcda47a4a2915a54a9bfec19e8f0f18a56d5c58141e35b05d49c1cc666f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.39-cp39-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 14a536c6a40a608bb45c6994ce1ea764094b9ac3e90c5db1ae60df3d3a9088d7
MD5 48defcb87f8be847d1044a36313a2f2b
BLAKE2b-256 ce41660bcdacee4c101dd4b4cc5b315bc3fd3a3d30bcb34c199594530b3dab14

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.39-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ffb2f7f3a5901a0307f92a082472a48351760dc6af246e52e4cca704732b3984
MD5 d2c827da0a2134ff40847e9eb330c091
BLAKE2b-256 3bccaaa99e816ce81da9b824d597118fb3ef3e89820838c99576b026059ef222

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for seine_rs-0.4.39-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7ee77bdaa46f4fb066ad47b7503b22cd9215d182080111e2a9bc5508a859a319
MD5 864f5cd4609c73aed1c3b85f8c344b55
BLAKE2b-256 428919be598fd4adaa66ca13276cb86e1488a2415fa587d68cc95a22258451fe

See more details on using hashes here.

Provenance

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

0.4.40

8 files

This release

0.4.39 This release

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