LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

poetry-run

Execute commands in virtual environment

TLDR

Run command in virtual environment
$ poetry run [command]
copy
Run Python script
$ poetry run python [script.py]
copy
Run installed tool
$ poetry run pytest
copy
Run with arguments
$ poetry run python -m [module] [args]
copy

SYNOPSIS

poetry run command [args]

DESCRIPTION

poetry run executes a command within the project's virtual environment without requiring manual activation. It automatically locates and uses the correct virtual environment for the current project.This is the recommended way to run project scripts, test suites, and installed tools. For example, `poetry run pytest` runs tests using the project's dependencies, and `poetry run python script.py` executes a script with the project's Python interpreter. An alternative is poetry shell for an interactive session.

PARAMETERS

COMMAND

Command to execute.
ARGS
Arguments to pass.

INSTALL

sudo dnf install poetry
copy
sudo apk add poetry
copy
brew install poetry
copy
nix profile install nixpkgs#poetry
copy

CAVEATS

Creates venv if not exists. Alternative to poetry shell.

HISTORY

poetry run provides virtual environment command execution.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid