bashable is a Python module that lets you define and run Bash-based tasks using YAML. You can customize environment variables, switch users, set working directories, and execute either inline commands or external scripts — all from a clean, declarative config format.
- Define tasks with
COMMANDSorSCRIPT - Global and task-specific variables
- Recursive variable substitution using
${VAR}syntax - Support for running as different users (
sudo -u) - Set working directories per task
- Script templating using Python’s
string.Template
--
- Setup Python Virtual Env
chmod +x setup_env
activate_venv
pip install -e . - Run demo1.py
python3 demo1.py