poetry

Inherit

This executable can inherit functions from another.
  1. Comment

    This allows to run Python code (...).

    A valid pyproject.toml file must be present in the current working directory, you can create one with poetry init -n.

    This function can be performed by any unprivileged user.
    echo '...' >/path/to/temp-file
    poetry run python /path/to/temp-file
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    echo '...' >/path/to/temp-file
    poetry run python /path/to/temp-file
    Functions

    Inherits from python, thus possibly granting its functions.