WoSIT (Workflow Script Interpreter Tool)
WoSIT is an automation tool made to replace make in many instances. It is written in pure Python and is built to ease integration of other Python scripts in automation workflows.
Using WoSIT
Similarly to Makefiles, WoSIT's way of describing automation workflows is through buildconfig.py files. Those are Python files, and as such allow for the use of the full scripting capabilities offered by Python and its packages. This fact makes it closer to generating automation workflows based on the given script, compared to make which uses workflows descriptions.
Basic Usage
Executing a WoSIT workflow is as simple as typing wosit in a directory where a buildconfig.py file is present. By default, WoSIT will execute the all rule.
Similarly to Make, parallel execution can be achieved with the -j flag followed by the maximum number of processes to use.
Basic Example
The following script defines a Python function named genMyRules() to generate a number of rules. Each rule depends on the previous one, and will use the shell echo command to print its own id in the terminal.
The script then generates those rules by calling the function.
The rule with target all is added with its source set to the last generated rule. This target is special as it is executed by default when no other target is specified.
from wosit.builder import *
def genMyRules(nbrules):
addRule(
target = f"rule_0",
command = f"echo This is a rule with id 0"
)
for i in range(1, nbrules):
addRule(
target = f"rule_{i}",
source = f"rule_{i-1}",
command = f"echo This is a rule with id {i}"
)
nb_rules = 10
genMyRules(nb_rules)
addRule(
target = "all",
source = f"rule_{nb_rules-1}"
)
addRule(
target="clean",
command=f"""
echo Clean commands should go here.
"""
)
Run a Command on Failure
You can pass on_failure_command to execute a fallback command when command fails.
from wosit.builder import *
addRule(
target="build",
command="python3 build.py",
on_failure_command="echo Build failed && python3 collect_logs.py"
)
on_failure_command can be either a shell command string or a Function(...), just like command.
Python Functions Example
WoSIT is capable of executing Python functions. The syntax is the same as defining any other rule, with the exception that the function must be passed to the command argument through WoSIT's Function() object.
from wosit.builder import *
addRule(
target = "rule_0",
command = Function(print, args=("This is rule 0.",))
)
addRule(
target = "rule_1",
command = Function(print, args=("This is rule 1.",))
)
addRule(
target = "all",
source = ["rule_0", "rule_1"]
)
More Examples
More examples are available in the examples folder of this repository.
Metadata
Release files for wosit 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wosit-1.2.0.tar.gz | 11.2 kB | With provenance | Details for wosit-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wosit-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for wosit-1.2.0-py3-none-any.whl |
Total release size: 23.3 kB
Release files / wosit-1.2.0.tar.gz
| Download URL | wosit-1.2.0.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e749cfcff495df15713a22857f5fb14546b3f297d897520b09168b3ecbb9378
|
|
BLAKE2b-256 checksum How to use checksums |
d1588a56abe2a3daf9be733996afe3324a1ee3ea1dab3a01901b66c288386e4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 30, 2026.
Transparency logRelease files / wosit-1.2.0-py3-none-any.whl
| Download URL | wosit-1.2.0-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2186589f174a1aa5f8b6f0d428f508577d9b747c955efc57587f7759b6632b38
|
|
BLAKE2b-256 checksum How to use checksums |
65dc7f2bbed8aeaeb8e2311b272b047b584055097312e7d82911207f2b28a4be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 30, 2026.
Transparency logSecurity for wosit 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for wosit-1.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.