pdm Plugin
Python package and dependency manager supporting PEP 582.
Commands
Package Management
pdm install run— Install dependencies from pyproject.tomlpdm add run— Add package dependencypdm build run— Build package for distributionpdm publish run— Publish package to PyPI
Usage Examples
- "Install project dependencies with pdm"
- "Add requests as a dependency"
- "Build this package"
- "Publish to PyPI"
Installation
pip install pdm
Examples
# Install dependencies
pdm install
# Add dependency
pdm add requests
# Add dev dependency
pdm add --dev pytest
# Build package
pdm build
# Publish to PyPI
pdm publish
# Run script in pdm environment
pdm run python -c "print('hello')"