Skip to content

KubaTaba1uga/python_script_executor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyTest codecov

Requirements

  1. Python >=3.9
  2. Poetry

Python 3.9.8 installation:

cd .prep
/bin/bash install_python3_9.sh

Poetry installation:

python3 -m pip install poetry

App description

Python Script Executor organize scripts in order and executes them.

In case of output or error, output controller perform desired actions.

If script return non 0 exit code, app stop another scripts execution and ask You about desired action.

Tested scripts interpreters:

- bash
- python

App installation

Execute below command inside repository directory:

python3 -m poetry install --no-dev

App usage

Copy scripts You would like to execute to <repository_location>/scripts directory.

To order scripts add numbers preceded by _ to their names ends. If numbers are missing scripts will be executed randomly.

Script Name Examples:

script_0.sh
update-apt-get_1.sh
update-upgrade_2.sh

To start app with default settings use:

python3 -m poetry run python start.py

To show help use:

python3 -m poetry run start.py -h

About

Tool for executing scripts on GNU/LINUX. Redirects input. Recognizes errors.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published