This release is a pre-release and may not be stable for production use.
RBEK Python SDK
Keep your orchestrator. Govern the execution boundary.
Your framework decides what to do. RBEK decides what may execute.
Install the Python SDK
pip install rbek
60-second quickstart
Start with a simple business rule. This example performs local policy evaluation only. It does not invoke an external provider and is not canonical RBEK gate authorization.
from rbek import GovernedAction, Policy
policy = Policy.allow_if("amount <= 100")
action = GovernedAction("purchase", policy=policy)
allowed = action.evaluate(amount=75)
denied = action.evaluate(amount=150)
print(allowed.status) # ALLOWED
print(denied.status) # DENIED
Real governed execution
Real governed execution requires the RBEK CLI.
The Python SDK can evaluate local business policy without the CLI, but provider execution crosses the RBEK CLI boundary.
Install the CLI:
curl -fsSL https://releases.rbekplatform.com/cli/stable/install.sh | bash
Then bind a governed capability:
from rbek import CLIExecutionBinding, GovernedAction, Policy
policy = Policy.allow_if(
"latitude >= -90 and latitude <= 90"
)
binding = CLIExecutionBinding(
provider="open-meteo",
capability="weather.current",
)
action = GovernedAction(
"weather",
policy=policy,
binding=binding,
)
result = action.execute(
latitude=32.66,
longitude=-16.92,
)
print(result.status)
If the CLI cannot be found, the SDK fails closed with
RBEKCLIUnavailable and shows the official installer command.
Advanced installations may provide cli_path= explicitly.
RBEK Python SDK candidate
RBEK is the governed execution layer for AI agents, workflows and software.
Your framework or application decides what it wants to do. RBEK decides what may execute at the governed execution boundary.
60-second governed action
from rbek import CLIExecutionBinding, GovernedAction, Policy
weather = GovernedAction(
name="weather.current",
policy=Policy.allow_if(
"latitude <= 90",
deny_reason="Latitude outside business policy",
),
binding=CLIExecutionBinding(
provider="open-meteo",
),
)
result = weather.execute(
latitude=32.66,
longitude=-16.92,
)
print(result.status)
print(result.executed)
print(result.output)
The public Python layer stays small:
PolicyGovernedActionGovernedResultCLIExecutionBinding
CLIExecutionBinding sends a versioned declarative JSON request to:
rbek-cli developer execute
The developer does not manage project roots, provider registration files, plans, gates or evidence paths for this managed execution path.
Two different policy roles
Policy.allow_if(...) is a deterministic pre-execution business policy in the Python SDK. If it denies, the execution binding is not called.
It is not claimed to be equivalent to the canonical RBEK runtime gate policy.
After the SDK business policy allows an action, RBEK CLI remains the execution authority and the private runtime materializes the governed execution inputs before the canonical gate and provider execution.
Framework-agnostic integration
Keep your orchestrator. Govern the execution boundary.
The same GovernedAction pattern can be called from plain Python or wrapped by an agent/workflow framework. Framework-specific examples are reference integrations; they do not move orchestration authority into RBEK.
Publication status
This source tree is the release candidate for rbek 0.3.0a3.
Publication requires a separate certification and explicit authorization.
Metadata
Release files for rbek 0.3.0a3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rbek-0.3.0a3.tar.gz | 16.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rbek-0.3.0a3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.7 kB
Release files / rbek-0.3.0a3.tar.gz
| Download URL | rbek-0.3.0a3.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33bb994309a5b3597dc64ecee854c558c6dc9bb5bf67aedc41454f487629b9e7
|
|
BLAKE2b-256 checksum How to use checksums |
2cb2dc95b085e7fd895941c8442f76b00b655c5e9c64505dcd0f1c3f1053d1a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / rbek-0.3.0a3-py3-none-any.whl
| Download URL | rbek-0.3.0a3-py3-none-any.whl |
|---|---|
| Size | 14.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ba67531d1093cf33a6b171dc06f7ecc7302ebdf9560faa6fb6cf08591f665741
|
|
BLAKE2b-256 checksum How to use checksums |
ba28c613ba6f0f118d9ef5861f698db9248994151315e26f141dd647b2e01554
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|