pdmEasy Examples

Modern package manager with PEP 582 and lockfiles

Getting started with pdm

Installation and basic usage of pdm.

python
# Install: pip install pdm  # or: pipx install pdm
import pdm

# Basic pdm usage
print(f"Using pdm")
# See documentation for detailed examples
Expected Output
# Expected output shown below
# (Run locally with: pdm)

pdm is a third-party package. Modern package manager with PEP 582 and lockfiles. Install with: pip install pdm # or: pipx install pdm

Common pdm operations

Frequently used features of pdm.

python
# Install: pip install pdm  # or: pipx install pdm
import pdm

# Common pdm patterns
print(f"pdm version: {pdm.__version__}")

These are the most commonly used features of pdm in everyday development.

Want to try these examples interactively?

Open Easy Playground