LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

poetry

Python dependency management and packaging tool

TLDR

Create new project
$ poetry new [project-name]
copy
Initialize in existing directory
$ poetry init
copy
Install dependencies
$ poetry install
copy
Add a package
$ poetry add [package]
copy
Remove a package
$ poetry remove [package]
copy
Run a command
$ poetry run [command]
copy
Activate virtual environment
$ poetry shell
copy

SYNOPSIS

poetry [command] [options]

DESCRIPTION

poetry is a Python dependency management and packaging tool that uses pyproject.toml as its single configuration file. It handles dependency resolution, virtual environment management, building, and publishing packages to PyPI.Poetry creates isolated virtual environments for each project and uses a lock file (poetry.lock) to ensure reproducible installations across different machines. Key commands include install (install dependencies), add/remove (manage dependencies), run (execute in venv), and shell (activate venv).

PARAMETERS

new NAME

Create new project.
init
Initialize interactively.
install
Install dependencies.
add PKG
Add dependency.
remove PKG
Remove dependency.
run CMD
Run command in venv.
shell
Spawn shell in venv.
update
Update dependencies.

CONFIGURATION

pyproject.toml

Project configuration file containing dependencies, metadata, build system settings, and Poetry-specific settings under `[tool.poetry]`.
poetry.lock
Lock file ensuring reproducible dependency resolution across installations.
~/.config/pypoetry/config.toml
Global Poetry configuration including virtualenv settings, repository credentials, and cache paths.

INSTALL

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

CAVEATS

Requires Python 3.8+. Uses its own virtual environments.

HISTORY

Poetry was created as a modern Python dependency management solution.

SEE ALSO

pip(1), pipenv(1), python(1)

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