Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Poetry

$ poetry Official Med Risk
Python Poetry · Code & DevOps · MIT · macos / linux / windows

Poetry (poetry) manages pyproject.toml dependencies, deterministic poetry.lock resolution, virtualenvs, and wheel/sdist publishing. It provides --no-interaction, --no-ansi, --dry-run on installs/updates/builds, and poetry check --lock for CI validation.

FCRS-1.0 Score
81 /100
Good
Medium Confidence
Zero-Friction Install
brew install poetry
CLI vs MCP Decision CLI Preferred vs MCP

poetry manages local virtualenvs, poetry.lock resolution, and package builds directly inside the repo; CLI usage avoids schema bloat and round-trips.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

Strong --no-interaction, --no-ansi, and --dry-run support across install/update/build, though core query commands like poetry show emit plain text instead of --json.

  • Global --no-interaction and --no-ansi flags
  • Lacks native --json output on poetry show
Trust & Safety 21 / 25

Enforces reproducible poetry.lock installs, offers --dry-run previews, and keeps publish credentials in keyring or env vars.

  • poetry check --lock and poetry install --dry-run prevent accidental drift
Setup & Portability 12 / 15

Installable via Homebrew, pipx, uvx, and official script across macOS, Linux, and Windows, though requires a Python runtime.

  • Cross-platform Python CLI available via Homebrew and pipx
Utility & Efficiency 13 / 15

Widely adopted all-in-one dependency, lockfile, build, and publish workflow, though resolver speed trails Rust-based tools like uv.

  • Mature pyproject.toml + poetry.lock lifecycle
Maintenance & Lineage 8 / 10

Maintained by Python Poetry (python-poetry/poetry) under MIT license.

  • Official python-poetry/poetry repository
Docs & Verifiability 9 / 10

Comprehensive official CLI reference and configuration docs at python-poetry.org/docs/cli/.

  • Complete command reference at python-poetry.org/docs/cli

Security, Auth & Guardrails

Auth Modes
No Auth Config File Env API Key OS Keychain
Credential Storage

Stores PyPI and private repository tokens in OS keyring or auth.toml, and accepts POETRY_PYPI_TOKEN_PYPI / POETRY_HTTP_BASIC_* env vars.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

MIT open-source CLI; free to use locally and with public or private PyPI indexes.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Poetry Agent Rules
- Always pass `--no-interaction --no-ansi` to suppress prompts and ANSI codes.
- Preview changes with `poetry install --dry-run` or `poetry update --dry-run` before mutating envs.
- Never run `poetry publish` without explicit user approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

Validate pyproject.toml and lockfile consistency
poetry check --lock --no-interaction --no-ansi

Verifies pyproject.toml syntax and confirms poetry.lock is in sync without modifying files.

Preview dependency installation changes
poetry install --dry-run --no-interaction --no-ansi

Shows exact package additions, updates, or removals without touching the virtualenv.

Controlled Writes & Previews

Sync environment strictly from lockfile
poetry install --no-interaction --no-ansi

Installs locked dependencies into the project virtualenv without prompting.

Strengths for Agents

  • + Global --no-interaction and --no-ansi flags make headless execution predictable.
  • + --dry-run is supported on install, update, add, remove, and build.
  • + poetry check --lock catches stale lockfiles cleanly in CI and agent checks.

Caveats & Pitfalls

  • ! poetry show and poetry env info lack native --json output without third-party plugins.
  • ! Dependency resolution and cold installs can be slow compared to uv or pdm.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI