PDM
$ pdm Community Med RiskPDM (pdm) is a PEP 621/582-aligned Python package manager featuring a cross-platform pdm.lock, optional uv backend acceleration, and clean automation flags including pdm list --json --fields and --dry-run on installs and updates.
brew install pdm pdm operates directly on local pyproject.toml, pdm.lock, and .venv state; direct CLI execution is faster and avoids MCP overhead.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports pdm list --json with --fields filtering, --dry-run on install/update/add, --frozen-lockfile, and NO_COLOR=1.
pdm list --fields ... --jsonsupports field selection and JSON outputpdm install --dry-runandpdm sync --frozen-lockfileenable safe headless execution
Uses .venv isolation, --dry-run previews, --frozen-lockfile guards, and keyring/env-var isolation for pdm publish.
--dry-runpreviews lock and install mutations before applying--frozen-lockfileprevents silent lockfile rewrites
Available via Homebrew, PyPI, pipx, uvx, and installer scripts across macOS, Linux, and Windows, requiring Python.
- Installable via
brew install pdmanduvx pdm
Flexible PEP 621 manager that can optionally delegate resolution/installs to uv via use_uv = true.
- Optional
uvbackend speeds up resolution while keepingpdm.lockworkflows
Actively maintained by Frost Ming and contributors (pdm-project/pdm) under MIT license.
- Active
pdm-project/pdmrepository under MIT license
Clear CLI reference and configuration guide at pdm-project.org.
- Detailed CLI reference at pdm-project.org/en/latest/reference/cli
Security, Auth & Guardrails
Stores repository credentials in OS keyring or pdm global config, and reads PDM_PUBLISH_USERNAME / PDM_PUBLISH_PASSWORD env vars.
MIT open-source CLI; free to use.
# PDM Agent Rules - Use `pdm list --fields name,version --json` for compact package inspection. - Preview changes with `pdm install --dry-run` or `pdm update --dry-run` and enforce `--frozen-lockfile` in CI. - Never run `pdm publish` without explicit user approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
pdm list --fields name,version,licenses --json
Emits JSON metadata for installed packages using explicit --fields projection.
pdm install --dry-run --no-self
Pre-evaluates package additions or updates against pdm.lock without modifying .venv.
Controlled Writes & Previews
pdm sync --frozen-lockfile --no-editable
Installs exact locked packages into .venv without re-resolving or prompting.
Strengths for Agents
- +
pdm list --fields ... --jsongives agents structured dependency inspection with field filtering. - + Supports
--dry-runonadd,update, andinstallplus--frozen-lockfileenforcement. - + Can optionally use
uvunder the hood for fast dependency resolution.
Caveats & Pitfalls
- ! Non-JSON
installandsyncoutputs remain line-oriented text. - ! Still requires a host Python installation to run
pdmitself.