Installation¶
There are several ways to install RuleFlow, each of which is covered below.
Simple One-Click Script (Recommended)¶
The fastest way to get up and going is using our automated bootstrapping scripts. These scripts completely automate environment preparation:
- Check for an existing installation of
uvand install it automatically if it is missing. - Create an isolated, persistent global tool environment for
ruleflow. - Check PyPI for any new releases and upgrade
ruleflowin-place automatically. - Launch RuleFlow Studio directly in your terminal.
You do not need to configure virtual environments, activate shells, or manage Python versions manually. You may find the location of these scripts in the source here: bin/auto.
Download & Run¶
- Run the file:
- Via File Explorer: Double-click on the
ruleflow.batfile. - OR Via PowerShell:
Desktop Shortcut & Custom Icon
Because .bat files cannot embed custom application icons natively, you can create a desktop shortcut:
- Put the
ruleflow.batfile in a folder and download this icon into the same folder. - Right-click
ruleflow.batclick Show more options select Create shortcut. - Right-click the newly generated shortcut select Properties.
- Under the Shortcut tab, click Change Icon... and select
logo.ico(use the location oflogo.ico). - Place the newly created shortcut file into
C:\Users\<user name>\Desktopand name it as you wish.
Troubleshooting on Windows
- You may see Windows Defender warnings due to RuleFlow being an unsigned software. You may safely ignore these; RuleFlow is safe to run and will not cause vulnarabilities.
- PowerShell Execution Policy Restrictions:
If your system blocks the automated
uvdownload script, run the following command in PowerShell (in the same directory asruleflow.bat) to allow user-level script execution: This only needs to be done once.
Download & Run¶
-
Grant execution permissions to the script:
-
Execute the script:
(Alternatively, run it directly with bash ruleflow.bash without modifying permissions).
Troubleshooting on Linux / macOS
- Permission Denied (
chmod +x): If you download the script via a browser orcurl, POSIX executable permissions are stripped by default. Runchmod +x ruleflow.bashbefore running./ruleflow.bash. - Missing
curl: Minimal Linux distributions and container images may omitcurl. Install it via your distribution package manager (e.g.,sudo apt install curlorsudo pacman -S curl).
Using the uv Package Manager¶
uv is an extremely fast Python package manager and the default package manager for RuleFlow. It enables running RuleFlow directly in an isolated tool environment or managing standard local virtual environments while automatically managing all the dependencies. For more details on how to use uv, read their official documentation here.
Follow these instructions to download uv before completing any further steps.
Option 1: Standalone Studio (uv tool)¶
If your primary goal is to use RuleFlow Studio as an interactive terminal interface, install and run it globally as an isolated tool:
-
Install the Studio tool:
-
Launch RuleFlow Studio:
-
Updating RuleFlow: To fetch the latest release from PyPI, upgrade the tool directly:
Option 2: Core Library in an Environment (uv add)¶
Cache Refresh
If a new version was recently pushed to PyPI and uv reports that the version cannot be found, force a fresh query to bypass local cache:
If you are developing custom models, running simulations from scripts, etc., simply install the package into an active virtual environment:
Source clone with git¶
Cloning the repository directly from GitHub gives you full access to the source code, tests, and development tree. This setup is recommended if you plan to inspect internal mechanisms, build custom Studio plugins, or contribute to RuleFlow.
To modify and edit code, we recommend using both VS Code for quick and easy file editing, and PyCharm for a full Python IDE experiance.
1. Clone the Repository¶
Clone the project repository to a directory on your local machine using git:
Alternatively, you may use GitHub Desktop for a user freindly git interface.
2. Environment Setup & Editable Installation¶
Install the package in editable mode (-e) so that any modifications made to the Python source files under src/ take effect immediately without requiring a reinstallation.
# Create and activate a local virtual environment
uv venv
source .venv/bin/activate
# Install in editable mode
uv pip install -e .
3. Verify the Installation¶
Ensure the environment is configured correctly by launching the Studio interface: