Files
regorus/bindings/python
dependabot[bot] cd110d08e3 build(deps): bump the rust-dependencies group across 5 directories with 2 updates
Bumps the rust-dependencies group with 2 updates in the / directory: [jsonschema](https://github.com/Stranger6667/jsonschema) and [vstd](https://github.com/verus-lang/verus).
Bumps the rust-dependencies group with 2 updates in the /bindings/ffi directory: [jsonschema](https://github.com/Stranger6667/jsonschema) and [vstd](https://github.com/verus-lang/verus).
Bumps the rust-dependencies group with 2 updates in the /bindings/java directory: [jsonschema](https://github.com/Stranger6667/jsonschema) and [vstd](https://github.com/verus-lang/verus).
Bumps the rust-dependencies group with 2 updates in the /bindings/python directory: [jsonschema](https://github.com/Stranger6667/jsonschema) and [vstd](https://github.com/verus-lang/verus).
Bumps the rust-dependencies group with 2 updates in the /bindings/wasm directory: [jsonschema](https://github.com/Stranger6667/jsonschema) and [vstd](https://github.com/verus-lang/verus).


Updates `jsonschema` from 0.48.5 to 0.49.2
- [Release notes](https://github.com/Stranger6667/jsonschema/releases)
- [Changelog](https://github.com/Stranger6667/jsonschema/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stranger6667/jsonschema/compare/ruby-v0.48.5...ruby-v0.49.2)

Updates `vstd` from 0.0.0-2026-07-12-0122 to 0.0.0-2026-07-27-0206
- [Release notes](https://github.com/verus-lang/verus/releases)
- [Commits](https://github.com/verus-lang/verus/commits)

Updates `jsonschema` from 0.48.5 to 0.49.2
- [Release notes](https://github.com/Stranger6667/jsonschema/releases)
- [Changelog](https://github.com/Stranger6667/jsonschema/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stranger6667/jsonschema/compare/ruby-v0.48.5...ruby-v0.49.2)

Updates `vstd` from 0.0.0-2026-07-12-0122 to 0.0.0-2026-07-27-0206
- [Release notes](https://github.com/verus-lang/verus/releases)
- [Commits](https://github.com/verus-lang/verus/commits)

Updates `jsonschema` from 0.48.5 to 0.49.2
- [Release notes](https://github.com/Stranger6667/jsonschema/releases)
- [Changelog](https://github.com/Stranger6667/jsonschema/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stranger6667/jsonschema/compare/ruby-v0.48.5...ruby-v0.49.2)

Updates `vstd` from 0.0.0-2026-07-12-0122 to 0.0.0-2026-07-27-0206
- [Release notes](https://github.com/verus-lang/verus/releases)
- [Commits](https://github.com/verus-lang/verus/commits)

Updates `jsonschema` from 0.48.5 to 0.49.2
- [Release notes](https://github.com/Stranger6667/jsonschema/releases)
- [Changelog](https://github.com/Stranger6667/jsonschema/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stranger6667/jsonschema/compare/ruby-v0.48.5...ruby-v0.49.2)

Updates `vstd` from 0.0.0-2026-07-12-0122 to 0.0.0-2026-07-27-0206
- [Release notes](https://github.com/verus-lang/verus/releases)
- [Commits](https://github.com/verus-lang/verus/commits)

Updates `jsonschema` from 0.48.5 to 0.49.2
- [Release notes](https://github.com/Stranger6667/jsonschema/releases)
- [Changelog](https://github.com/Stranger6667/jsonschema/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stranger6667/jsonschema/compare/ruby-v0.48.5...ruby-v0.49.2)

Updates `vstd` from 0.0.0-2026-07-12-0122 to 0.0.0-2026-07-27-0206
- [Release notes](https://github.com/verus-lang/verus/releases)
- [Commits](https://github.com/verus-lang/verus/commits)

---
updated-dependencies:
- dependency-name: jsonschema
  dependency-version: 0.49.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-dependencies
- dependency-name: vstd
  dependency-version: 0.0.0-2026-07-27-0206
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: jsonschema
  dependency-version: 0.49.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-dependencies
- dependency-name: vstd
  dependency-version: 0.0.0-2026-07-27-0206
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: jsonschema
  dependency-version: 0.49.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-dependencies
- dependency-name: vstd
  dependency-version: 0.0.0-2026-07-27-0206
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: jsonschema
  dependency-version: 0.49.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-dependencies
- dependency-name: vstd
  dependency-version: 0.0.0-2026-07-27-0206
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: jsonschema
  dependency-version: 0.49.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-dependencies
- dependency-name: vstd
  dependency-version: 0.0.0-2026-07-27-0206
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-30 02:37:05 +00:00
..
2026-03-27 12:34:49 -05:00
2024-01-28 14:39:59 -08:00
2024-02-01 13:47:27 -08:00

regorus

Regorus is

  • Rego-Rus(t) - A fast, light-weight Rego interpreter written in Rust.
  • Rigorous - A rigorous enforcer of well-defined Rego semantics.

Regorus can be used in Python via regorus package. (It is not yet available in PyPI, but can be manually built.)

See Repository.

Automation

Run cargo xtask build-python to produce wheels via maturin, or cargo xtask test-python to reinstall the package locally and execute the sample script and pytest suite.

To build this binding, see building

Usage

import regorus

# Create engine
engine = regorus.Engine()

# Load policies
engine.add_policy_from_file('../../tests/aci/framework.rego')
engine.add_policy_from_file('../../tests/aci/api.rego')
engine.add_policy_from_file('../../tests/aci/policy.rego')

# Add policy data
data = {
  "metadata": {
    "devices": {
      "/run/layers/p0-layer0": "1b80f120dbd88e4355d6241b519c3e25290215c469516b49dece9cf07175a766",
      "/run/layers/p0-layer1": "e769d7487cc314d3ee748a4440805317c19262c7acd2fdbdb0d47d2e4613a15c",
      "/run/layers/p0-layer2": "eb36921e1f82af46dfe248ef8f1b3afb6a5230a64181d960d10237a08cd73c79",
      "/run/layers/p0-layer3": "41d64cdeb347bf236b4c13b7403b633ff11f1cf94dbc7cf881a44d6da88c5156",
      "/run/layers/p0-layer4": "4dedae42847c704da891a28c25d32201a1ae440bce2aecccfa8e6f03b97a6a6c",
      "/run/layers/p0-layer5": "fe84c9d5bfddd07a2624d00333cf13c1a9c941f3a261f13ead44fc6a93bc0e7a"
    }
  }
}
engine.add_data(data)

# Set input
input = {
  "containerID": "container0",
  "layerPaths": [
    "/run/layers/p0-layer0",
    "/run/layers/p0-layer1",
    "/run/layers/p0-layer2",
    "/run/layers/p0-layer3",
    "/run/layers/p0-layer4",
    "/run/layers/p0-layer5"
  ],
  "target": "/run/gcs/c/container0/rootfs"
}
engine.set_input(input)

# Eval rule
value = engine.eval_rule('data.framework.mount_overlay')

# Print value
print(value)