poetry

Manage Python dependencies and environments in Poetry projects via pyproject.toml and poetry.lock.

5|3|Updated Jun 18, 2024
One-click install
npx skills add https://github.com/Unique-AG/ai --skill poetry-unique-ag
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: poetry
Source: https://github.com/Unique-AG/ai/tree/main/.claude/skills/poetry
Command: npx skills add https://github.com/Unique-AG/ai --skill poetry-unique-ag

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Poetry simplifies managing Python dependencies and reproducible environments across teams, reducing drift and setup time.

Core Features & Use Cases

  • Add or remove dependencies in pyproject.toml and update poetry.lock in one step
  • Install exactly the dependencies described by the lock file, ensuring reproducible environments
  • Regenerate the lock file after pyproject.toml changes to safely resolve constraints
  • Run commands inside the project's virtual environment without manual activation
  • Scaffold new projects or migrate from requirements.txt to Poetry

Quick Start

Initialize or upgrade a Poetry-managed project with a simple command and start adding dependencies.

Frequently Asked Questions about poetry

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage Python dependencies and virtual environments with Poetry?

Poetry manages Python dependencies and virtual environments by automating pyproject.toml and poetry.lock updates, installing exact locked versions, and running commands inside the project environment to ensure reproducible setups across development teams.

What's the best way to migrate from requirements.txt to a pyproject.toml setup?

Migrating from requirements.txt to a pyproject.toml setup involves scaffolding a new Poetry-managed project, importing existing dependencies, and regenerating the lock file to safely resolve constraints and provision a consistent virtual environment.

How do I add or remove Python dependencies and update the lock file?

Adding or removing Python dependencies updates pyproject.toml and poetry.lock in one step, automatically resolving version constraints and syncing the virtual environment to match the new lock file state.

Does Poetry ensure reproducible environments across different development teams?

Poetry ensures reproducible environments by installing exactly the dependencies described in the poetry.lock file, reducing environment drift and setup time across multiple development teams and machines.

Can I run commands inside the project virtual environment without manual activation?

Running commands inside the project virtual environment requires no manual activation, as Poetry automatically routes execution through the isolated environment provisioned by the poetry.lock file.

Why should I regenerate the lock file after changing pyproject.toml?

Regenerating the lock file after changing pyproject.toml is necessary to safely resolve updated dependency constraints, synchronize the virtual environment, and maintain reproducible project setups across teams.