https://github.com/azurelotus06/pdm

https://github.com/azurelotus06/pdm

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (16.1%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: azurelotus06
  • License: mit
  • Language: Python
  • Default Branch: main
  • Size: 10.2 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created almost 2 years ago · Last pushed almost 2 years ago
Metadata Files
Readme Changelog Contributing License Security

README.md

# PDM A modern Python package and dependency manager supporting the latest PEP standards. [中文版本说明](README_zh.md) ![PDM logo](https://raw.githubusercontent.com/pdm-project/pdm/main/docs/docs/assets/logo_big.png) [![Docs](https://img.shields.io/badge/Docs-mkdocs-blue?style=for-the-badge)](https://pdm-project.org) [![Twitter Follow](https://img.shields.io/twitter/follow/pdm_project?label=get%20updates&logo=twitter&style=for-the-badge)](https://twitter.com/pdm_project) [![Discord](https://img.shields.io/discord/824472774965329931?label=discord&logo=discord&style=for-the-badge)](https://discord.gg/Phn8smztpv) ![Github Actions](https://github.com/pdm-project/pdm/workflows/Tests/badge.svg) [![PyPI](https://img.shields.io/pypi/v/pdm?logo=python&logoColor=%23cccccc)](https://pypi.org/project/pdm) [![codecov](https://codecov.io/gh/pdm-project/pdm/branch/main/graph/badge.svg?token=erZTquL5n0)](https://codecov.io/gh/pdm-project/pdm) [![Packaging status](https://repology.org/badge/tiny-repos/pdm.svg)](https://repology.org/project/pdm/versions) [![Downloads](https://pepy.tech/badge/pdm/week)](https://pepy.tech/project/pdm) [![pdm-managed](https://img.shields.io/badge/pdm-managed-blueviolet)](https://pdm-project.org) trackgit-views [![asciicast](https://asciinema.org/a/jnifN30pjfXbO9We2KqOdXEhB.svg)](https://asciinema.org/a/jnifN30pjfXbO9We2KqOdXEhB)

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 Pipenv or Poetry 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 pdm.

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.
  • Opt-in centralized installation cache like pnpm.

Comparisons to other alternatives

Pipenv

Pipenv is a dependency manager that combines pip and venv, as the name implies. It can install packages from a non-standard Pipfile.lock or Pipfile. 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 setuptools 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 pyproject.toml standard, but it does not follow the standard specifying how metadata should be represented in a pyproject.toml file (PEP 621), instead using a custom [tool.poetry] table. This is partly because Poetry came out before PEP 621.

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 pyproject.toml 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.8 or higher.

Via Install Script

Like Pip, PDM provides an installation script that will install PDM into an isolated environment.

For Linux/Mac

bash curl -sSL https://pdm-project.org/install-pdm.py | python3 -

For Windows

powershell (Invoke-WebRequest -Uri https://pdm-project.org/install-pdm.py -UseBasicParsing).Content | python -

For security reasons, you should verify the checksum of install-pdm.py. It can be downloaded from install-pdm.py.sha256.

The installer will install PDM into the user site and the location depends on the system:

  • $HOME/.local/bin for Linux
  • $HOME/Library/Python/<version>/bin for MacOS
  • %APPDATA%\Python\Scripts on Windows

You can pass additional options to the script to control how PDM is installed:

``` usage: install-pdm.py [-h] [-v VERSION] [--prerelease] [--remove] [-p PATH] [-d DEP]

optional arguments: -h, --help show this help message and exit -v VERSION, --version VERSION | envvar: PDMVERSION Specify the version to be installed, or HEAD to install from the main branch --prerelease | envvar: PDMPRERELEASE Allow prereleases to be installed --remove | envvar: PDMREMOVE Remove the PDM installation -p PATH, --path PATH | envvar: PDMHOME Specify the location to install PDM -d DEP, --dep DEP | envvar: PDM_DEPS Specify additional dependencies, can be given multiple times ```

You can either pass the options after the script or set the env var value.

Alternative Installation Methods

If you are on macOS and using homebrew, install it by:

bash brew install pdm

If you are on Windows and using Scoop, install it by:

scoop bucket add frostming https://github.com/frostming/scoop-frostming.git scoop install pdm

Otherwise, it is recommended to install pdm in an isolated environment with pipx:

bash pipx install pdm

Or you can install it under a user site:

bash pip install --user pdm

With asdf-vm

bash asdf plugin add pdm asdf install pdm latest

Quickstart

Initialize a new PDM project

bash pdm init

Answer the questions following the guide, and a PDM project with a pyproject.toml file will be ready to use.

Install dependencies

bash pdm add requests flask

You can add multiple dependencies in the same command. After a while, check the pdm.lock 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:

markdown [![pdm-managed](https://img.shields.io/badge/pdm-managed-blueviolet)](https://pdm-project.org)

pdm-managed

Packaging Status

Packaging status

PDM Eco-system

Awesome PDM is a curated list of awesome PDM plugins and resources.

Sponsors

Credits

This project is strongly inspired by pyflow and poetry.

License

This project is open sourced under MIT license, see the LICENSE file for more details.

Owner

  • Login: azurelotus06
  • Kind: user

GitHub Events

Total
Last Year

Dependencies

.github/workflows/ci.yml actions
  • actions/cache v3 composite
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • codecov/codecov-action v3 composite
.github/workflows/doc.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
.github/workflows/release.yml actions
  • actions/checkout v3 composite
  • actions/create-release main composite
  • actions/setup-python v4 composite
  • benc-uk/workflow-dispatch v1 composite
chatbot/pyproject.toml pypi
  • llama-index >=0.8.59
  • openai >=0.28.1
  • setuptools >=68.2.2
  • streamlit >=1.28.1
chatbot/requirements.txt pypi
  • MarkupSafe ==2.1.3
  • PyMuPDFb ==1.23.22
  • PyYAML ==6.0.1
  • SQLAlchemy ==2.0.25
  • aiohttp ==3.9.1
  • aiosignal ==1.3.1
  • altair ==5.2.0
  • annotated-types ==0.6.0
  • anyio ==4.2.0
  • asgiref ==3.7.2
  • async-timeout ==4.0.3
  • attrs ==23.2.0
  • backoff ==2.2.1
  • bcrypt ==4.1.2
  • beautifulsoup4 ==4.12.3
  • blinker ==1.7.0
  • bs4 ==0.0.2
  • build ==1.1.1
  • cachetools ==5.3.2
  • certifi ==2023.11.17
  • charset-normalizer ==3.3.2
  • chroma-hnswlib ==0.7.3
  • chromadb ==0.4.24
  • click ==8.1.7
  • colorama ==0.4.6
  • coloredlogs ==15.0.1
  • dataclasses-json ==0.6.3
  • deprecated ==1.2.14
  • dirtyjson ==1.0.8
  • distro ==1.9.0
  • exceptiongroup ==1.2.0
  • fastapi ==0.110.0
  • filelock ==3.13.1
  • flatbuffers ==24.3.7
  • frozenlist ==1.4.1
  • fsspec ==2023.12.2
  • gitdb ==4.0.11
  • gitpython ==3.1.41
  • google-auth ==2.28.1
  • googleapis-common-protos ==1.62.0
  • greenlet ==3.0.3
  • grpcio ==1.62.0
  • h11 ==0.14.0
  • httpcore ==1.0.2
  • httptools ==0.6.1
  • httpx ==0.26.0
  • huggingface-hub ==0.21.4
  • humanfriendly ==10.0
  • idna ==3.6
  • importlib-metadata ==6.11.0
  • importlib-resources ==6.1.3
  • jinja2 ==3.1.3
  • joblib ==1.3.2
  • jsonschema ==4.20.0
  • jsonschema-specifications ==2023.12.1
  • kubernetes ==29.0.0
  • llama-index ==0.10.17
  • llama-index-agent-openai ==0.1.5
  • llama-index-cli ==0.1.8
  • llama-index-core ==0.10.17
  • llama-index-embeddings-openai ==0.1.6
  • llama-index-indices-managed-llama-cloud ==0.1.3
  • llama-index-legacy ==0.9.48
  • llama-index-llms-openai ==0.1.7
  • llama-index-multi-modal-llms-openai ==0.1.4
  • llama-index-program-openai ==0.1.4
  • llama-index-question-gen-openai ==0.1.3
  • llama-index-readers-file ==0.1.8
  • llama-index-readers-llama-parse ==0.1.3
  • llama-index-vector-stores-chroma ==0.1.5
  • llama-parse ==0.3.8
  • llamaindex-py-client ==0.1.13
  • markdown-it-py ==3.0.0
  • marshmallow ==3.20.2
  • mdurl ==0.1.2
  • mmh3 ==4.1.0
  • monotonic ==1.6
  • mpmath ==1.3.0
  • multidict ==6.0.4
  • mypy-extensions ==1.0.0
  • nest-asyncio ==1.5.8
  • networkx ==3.2.1
  • nltk ==3.8.1
  • numpy ==1.26.3
  • oauthlib ==3.2.2
  • onnxruntime ==1.17.1
  • openai ==1.13.3
  • opentelemetry-api ==1.23.0
  • opentelemetry-exporter-otlp-proto-common ==1.23.0
  • opentelemetry-exporter-otlp-proto-grpc ==1.23.0
  • opentelemetry-instrumentation ==0.44b0
  • opentelemetry-instrumentation-asgi ==0.44b0
  • opentelemetry-instrumentation-fastapi ==0.44b0
  • opentelemetry-proto ==1.23.0
  • opentelemetry-sdk ==1.23.0
  • opentelemetry-semantic-conventions ==0.44b0
  • opentelemetry-util-http ==0.44b0
  • orjson ==3.9.15
  • overrides ==7.7.0
  • packaging ==23.2
  • pandas ==2.1.4
  • pillow ==10.2.0
  • posthog ==3.5.0
  • protobuf ==4.25.2
  • pulsar-client ==3.4.0
  • pyarrow ==14.0.2
  • pyasn1 ==0.5.1
  • pyasn1-modules ==0.3.0
  • pydantic ==2.5.3
  • pydantic-core ==2.14.6
  • pydeck ==0.8.1b0
  • pygments ==2.17.2
  • pymupdf ==1.23.26
  • pypdf ==4.1.0
  • pypika ==0.48.9
  • pyproject-hooks ==1.0.0
  • pyreadline3 ==3.4.1
  • python-dateutil ==2.8.2
  • python-dotenv ==1.0.1
  • pytz ==2023.3.post1
  • referencing ==0.32.1
  • regex ==2023.12.25
  • requests ==2.31.0
  • requests-oauthlib ==1.3.1
  • rich ==13.7.0
  • rpds-py ==0.16.2
  • rsa ==4.9
  • setuptools ==69.1.1
  • six ==1.16.0
  • smmap ==5.0.1
  • sniffio ==1.3.0
  • soupsieve ==2.5
  • starlette ==0.36.3
  • streamlit ==1.32.0
  • sympy ==1.12
  • tenacity ==8.2.3
  • tiktoken ==0.5.2
  • tokenizers ==0.15.2
  • toml ==0.10.2
  • tomli ==2.0.1
  • toolz ==0.12.0
  • tornado ==6.4
  • tqdm ==4.66.1
  • typer ==0.9.0
  • typing-extensions ==4.9.0
  • typing-inspect ==0.9.0
  • tzdata ==2023.4
  • urllib3 ==2.1.0
  • uvicorn ==0.27.1
  • uvloop ==0.19.0
  • watchdog ==3.0.0
  • watchfiles ==0.21.0
  • websocket-client ==1.7.0
  • websockets ==12.0
  • wrapt ==1.16.0
  • yarl ==1.9.4
  • zipp ==3.17.0
pyproject.toml pypi
  • blinker *
  • cachecontrol [filecache]>=0.13.0
  • certifi *
  • dep-logic >=0.2.0,<1.0
  • findpython >=0.4.0,<1.0.0a0
  • importlib-metadata >=3.6; python_version < "3.10"
  • importlib-resources >=5; python_version < "3.9"
  • installer <0.8,>=0.7
  • packaging >=20.9,!=22.0
  • platformdirs *
  • pyproject-hooks *
  • python-dotenv >=0.15
  • requests-toolbelt *
  • resolvelib >=1.0.1
  • rich >=12.3.0
  • shellingham >=1.3.2
  • tomli >=1.1.0; python_version < "3.11"
  • tomlkit >=0.11.1,<1
  • truststore python_version >= "3.10"
  • unearth >=0.14.0
  • virtualenv >=20
src/pdm/cli/templates/default/pyproject.toml pypi
src/pdm/cli/templates/minimal/pyproject.toml pypi
src/pdm/models/setup.py pypi
tests/fixtures/Pipfile pypi
  • pywinusb *
  • requests *
tests/fixtures/projects/demo/pyproject.toml pypi
  • chardet os_name=='nt'
  • idna *
tests/fixtures/projects/demo-#-with-hash/setup.py pypi
  • idna *
tests/fixtures/projects/demo-combined-extras/pyproject.toml pypi
  • urllib3 *
tests/fixtures/projects/demo-failure/setup.py pypi
  • idna *
tests/fixtures/projects/demo-failure-no-dep/setup.py pypi
tests/fixtures/projects/demo-module/pyproject.toml pypi
tests/fixtures/projects/demo-package/pyproject.toml pypi
  • flask *
tests/fixtures/projects/demo-package/requirements.txt pypi
  • Jinja2 ==2.11.3 test
  • MarkupSafe ==1.1.1 test
  • Werkzeug ==1.0.1 test
  • click ==7.1.2 test
  • flask ==1.1.4 test
  • itsdangerous ==1.1.0 test
tests/fixtures/projects/demo-package/requirements_simple.txt pypi
  • Jinja2 ==2.11.3 test
  • MarkupSafe ==1.1.1 test
  • Werkzeug ==1.0.1 test
  • click ==7.1.2 test
  • flask ==1.1.4 test
  • itsdangerous ==1.1.0 test
tests/fixtures/projects/demo-package-has-dep-with-extras/pyproject.toml pypi
  • requests [security]~=2.26
tests/fixtures/projects/demo-package-has-dep-with-extras/requirements.txt pypi
  • certifi ==2021.10.8 test
  • charset-normalizer ==2.0.7 test
  • idna ==3.3 test
  • requests ==2.26.0 test
  • urllib3 ==1.26.7 test
tests/fixtures/projects/demo-parent-package/package-a/setup.py pypi
  • flask *
tests/fixtures/projects/demo-parent-package/package-b/pyproject.toml pypi
  • django *
tests/fixtures/projects/demo-prerelease/setup.py pypi
  • idna *
tests/fixtures/projects/demo-src-package/pyproject.toml pypi
tests/fixtures/projects/demo_extras/setup.py pypi
tests/fixtures/projects/flit-demo/pyproject.toml pypi
tests/fixtures/projects/poetry-demo/pyproject.toml pypi
  • pytest ^2.7.3
  • pytest-cov *
  • python ^3.6
  • requests ^2.6
  • sphinx *
tests/fixtures/projects/test-hatch-static/pyproject.toml pypi
  • click *
  • requests *
tests/fixtures/projects/test-monorepo/core/pyproject.toml pypi
tests/fixtures/projects/test-monorepo/package_a/pyproject.toml pypi
  • core @ file:///${PROJECT_ROOT}/../core
tests/fixtures/projects/test-monorepo/package_b/pyproject.toml pypi
  • core @ file:///${PROJECT_ROOT}/../core
tests/fixtures/projects/test-monorepo/pyproject.toml pypi
  • package_a @ file:///${PROJECT_ROOT}/package_a
  • package_b @ file:///${PROJECT_ROOT}/package_b
tests/fixtures/projects/test-package-type-fixer/pyproject.toml pypi
tests/fixtures/projects/test-plugin/setup.py pypi
tests/fixtures/projects/test-plugin-pdm/pyproject.toml pypi
tests/fixtures/projects/test-setuptools/setup.py pypi
tests/fixtures/pyproject.toml pypi
tests/fixtures/requirements-include.txt pypi
tests/fixtures/requirements.txt pypi
  • pep508-package master test
  • webassets ==2.0 test
  • werkzeug ==0.16.0 test
  • whoosh ==2.7.4 test
  • wtforms ==2.2.1 test