Why Scriptor?¶
Scriptor is a high-level abstraction for subprocess
and async.subprocess
.
Scriptor makes it easy to execute command-line programs from Python.
Features:
Run programs sync or async using the same syntax
High-level program abstraction
Easy program parametrization
A simple example:
>>> from scriptor import Program
>>> python = Program('python3')
>>> # Run a program (and wait for finish)
>>> python('myscript.py')
You can also conveniently parametrize programs:
>>> # Run: python3 myscript.py --report_date 2022-01-01
>>> python('myscript.py', report_date="2022-01-01")
You can create convenient interfaces to other programs with Scriptor. See:
Interested?¶
Install the package:
pip install scriptor