back to home

pdm-project / pdm

A modern Python package and dependency manager supporting the latest PEP standards

View on GitHub
8,547 stars
468 forks
53 issues
PythonShellPowerShell

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing pdm-project/pdm in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/pdm-project/pdm)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

PDM A modern Python package and dependency manager supporting the latest PEP standards. 中文版本说明 What is PDM? PDM is meant to be a next generation Python package management tool. It was originally built for personal use. If you feel you are going well with or and don't want to introduce another package manager, just stick to it. But if you are missing something that is not present in those tools, you can probably find some goodness in . Highlights of features • Simple and fast dependency resolver, mainly for large binary distributions. • A [PEP 517] build backend. • [PEP 621] project metadata. • Flexible and powerful plug-in system. • Versatile user scripts. • Install Pythons using astral-sh's python-build-standalone. • Opt-in centralized installation cache like pnpm. [pep 517]: https://www.python.org/dev/peps/pep-0517 [pep 621]: https://www.python.org/dev/peps/pep-0621 [pnpm]: https://pnpm.io/motivation#saving-disk-space-and-boosting-installation-speed Comparisons to other alternatives Pipenv Pipenv is a dependency manager that combines and , as the name implies. It can install packages from a non-standard or . However, Pipenv does not handle any packages related to packaging your code, so it’s useful only for developing non-installable applications (Django sites, for example). If you’re a library developer, you need anyway. Poetry Poetry manages environments and dependencies in a similar way to Pipenv, but it can also build .whl files with your code, and it can upload wheels and source distributions to PyPI. It has a pretty user interface and users can customize it via a plugin. Poetry uses the standard. Hatch Hatch can also manage environments, allowing multiple environments per project. By default it has a central location for all environments but it can be configured to put a project's environment(s) in the project root directory. It can manage packages but without lockfile support. It can also be used to package a project (with PEP 621 compliant pyproject.toml files) and upload it to PyPI. This project PDM can manage virtual environments (venvs) in both project and centralized locations, similar to Pipenv. It reads project metadata from a standardized file and supports lockfiles. Users can add additional functionality through plugins, which can be shared by uploading them as distributions. Unlike Poetry and Hatch, PDM is not limited to a specific build backend; users have the freedom to choose any build backend they prefer. Installation PDM requires python version 3.9 or higher. Alternatively, you can download the standalone binary file from the release assets. Install Binary via Script (recommended) Install the standalone binary directly with the installer scripts: **For Linux/Mac** **For Windows** For alternative installation methods (Python script, package managers, etc.), see the installation section in documentation. Quickstart **Create a new PDM project** Answer the questions following the guide, and a PDM project with a file will be ready to use. **Install dependencies** You can add multiple dependencies in the same command. After a while, check the file to see what is locked for each package. Badges Tell people you are using PDM in your project by including the markdown code in README.md: PDM Eco-system Awesome PDM is a curated list of awesome PDM plugins and resources. Experimental Enable PEP 582 for a project: pdm config python.use_venv False This makes PDM install packages into a local project folder instead of a venv (similar to how npm installs into node_modules). Enable uv integration: pdm config use_uv true uv is a very fast Python package installer written in Rust. Note: does not work with . Sponsors Credits This project is strongly inspired by [pyflow] and [poetry]. [pyflow]: https://github.com/David-OConnor/pyflow [poetry]: https://github.com/python-poetry/poetry License This project is open sourced under MIT license, see the LICENSE file for more details.