Skip to main content

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.

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)

Metadata

Release files for hobofan-regorus 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for hobofan-regorus 0.2.5
File
hobofan_regorus-0.2.5-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl PyPy 3.10 PyPy 3.10 7.3 Linux glibc 2.17+ x86-64 Details
hobofan_regorus-0.2.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
hobofan_regorus-0.2.5-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
hobofan_regorus-0.2.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
hobofan_regorus-0.2.5-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
hobofan_regorus-0.2.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
hobofan_regorus-0.2.5-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details
hobofan_regorus-0.2.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details
hobofan_regorus-0.2.5-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details
hobofan_regorus-0.2.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details

Total release size: 153.9 MB

Release files / hobofan_regorus-0.2.5-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL hobofan_regorus-0.2.5-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 23.7 MB
Tags Linux glibc 2.17+ x86-64 PyPy 3.10 PyPy 3.10 7.3
SHA-256 checksum
How to use checksums
42397934625ef86d3315411d5dbe169db54d8ad36c2b92550d047f26b6c1dca8
BLAKE2b-256 checksum
How to use checksums
8817f341904e7627e24d3646afb9bee9adbe328de4ecb7395934677064a5c001
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / hobofan_regorus-0.2.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL hobofan_regorus-0.2.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 23.7 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
4ce7f0292812ae5b4ca58aa3bcff5f3e75c16d151fe00df3a635ab8ee997c1f9
BLAKE2b-256 checksum
How to use checksums
e249282b8b79606a5bd93785a4cad44af5d996c4cba631c30a51620e2e56b18c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / hobofan_regorus-0.2.5-cp312-cp312-macosx_11_0_arm64.whl

Download URL hobofan_regorus-0.2.5-cp312-cp312-macosx_11_0_arm64.whl
Size 2.9 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b9ad7bef17deea1ab93b262665f0d24f6faebee3b44ebce5e7b13e183a6435dd
BLAKE2b-256 checksum
How to use checksums
44cf6c2415582f4eab706a825abd67013d25aa6ba9315f1727efec48612eb814
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / hobofan_regorus-0.2.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL hobofan_regorus-0.2.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 23.7 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
091c87740b821ecbb051431b2cfbb5254cffc2962dce6a4fb93300402554f0ed
BLAKE2b-256 checksum
How to use checksums
0100cd2484f45f45b8fb248c59923d3d88b198ef8a613d3657cf2e739382f1ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / hobofan_regorus-0.2.5-cp311-cp311-macosx_11_0_arm64.whl

Download URL hobofan_regorus-0.2.5-cp311-cp311-macosx_11_0_arm64.whl
Size 2.9 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6dbf61801d07b2eb268d004934757fa0633a4140f0d53eb176babcdce700011a
BLAKE2b-256 checksum
How to use checksums
dfa258ab224f9ec92ebfd93341df9463aa9e3ecce7378736ec4e6cb1d0e9ea89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / hobofan_regorus-0.2.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL hobofan_regorus-0.2.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 23.7 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
aae538796ad6f61a05b752559e24194afd56c11e8efb4f6c065d0afbd95c9983
BLAKE2b-256 checksum
How to use checksums
aa2dee19b7bb15b860713c30aa666d5680963704b25a6b1cfb0faa5c55dc9f13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / hobofan_regorus-0.2.5-cp310-cp310-macosx_11_0_arm64.whl

Download URL hobofan_regorus-0.2.5-cp310-cp310-macosx_11_0_arm64.whl
Size 2.9 MB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f23c962d3e5a68794d13a273f44a5ce637ba17af809edf91359c8263ac222e20
BLAKE2b-256 checksum
How to use checksums
f130252f98c17d432e773c30d55e70c43c9507f2e040747e35a4069a54782e15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / hobofan_regorus-0.2.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL hobofan_regorus-0.2.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 23.7 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
bcbab70431ecab7d91f81e9d3554601df06907d880f955072b689705a9c0d7d2
BLAKE2b-256 checksum
How to use checksums
1b38bc67cd1789f3e94467d252a68dd38047297705457c7f17c8392a0cc91c18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / hobofan_regorus-0.2.5-cp39-cp39-macosx_11_0_arm64.whl

Download URL hobofan_regorus-0.2.5-cp39-cp39-macosx_11_0_arm64.whl
Size 2.9 MB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
bc934be4ac3c61bc97fa645780ca7cbf4e7ac02ae5b857ef2e8bfd0810f54a03
BLAKE2b-256 checksum
How to use checksums
ef70f5eed784b47d108d7baa4c78f73faac6516b0ffee33393634c4e7eb9b4df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / hobofan_regorus-0.2.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL hobofan_regorus-0.2.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 23.8 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
191c35e27c1d8e335917c0a048bbc8f6c7ea6243e018ffa08fc4543243798fb0
BLAKE2b-256 checksum
How to use checksums
0d75fcab4ecd87a63a973636c31b6d58fa4bd9ae9465b3ead482ff2c3ab737bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release history Release notifications | RSS feed

This release

0.2.5 This release

10 release 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