truss run-python [OPTIONS] SCRIPT [TARGET_DIRECTORY]
Runs a Python script in the same environment as your Truss. This builds a Docker
image matching your Truss environment, mounts the script, and executes it. Use
this to test scripts with the same dependencies your model uses.
Arguments
Path to the Python script to run.
A Truss directory. Defaults to current directory.
Example:
To run a script in the Truss environment, use the following:
truss run-python test_script.py
To run a script with a specific Truss directory, use the following:
truss run-python test_script.py /path/to/my-truss