Skip to content
rulebricksPublic

About

Examples and starter kits for integrating Rulebricks into your applications.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

Banner

Implementation Examples

This repository contains helpful examples and starter kits for using Rulebricks in your applications.

Setup

For Python, create a virtual environment, install requirements.txt, copy .env.sample to .env, and add your API key:

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.sample .env

Node.js versions of examples 01-05 live in node/.

Examples

These Python examples demonstrate common Rulebricks SDK workflows.

This example creates a new rule, adds conditions and actions to it, and then solves the rule against a set of inputs.

This example demonstrates how to retrieve an existing rule, query specific condition rows inside it, edit those conditions, and publish a new version of the rule.

Vocabulary in Rulebricks lets you define reusable business values that your rules resolve at runtime. This example demonstrates how to define vocabulary values and reference them while programmatically building rules.

Rulebricks allows you to add tests to your rules to ensure that they always function as expected for every new published version. This example demonstrates how to add tests to a rule, how to enable continuous testing, and what happens when a critical test fails.

Learn how to invite new users, assign roles, create user (access) groups, and manage team permissions programmatically.

Rulebricks keeps a detailed history of every decision made by your rules. This example demonstrates how to query the decision history, filter it based on specific criteria, and analyze the results.

Accelerators

Accelerators are importable rule and flow starter kits that demonstrate using Rulebricks in real-world scenarios, with a higher level of complexity than our built-in templates.

Coming Soon

About

Examples and starter kits for integrating Rulebricks into your applications.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages