Skip to main content

pdm-bin-dir

CI PyPI version Python versions License: MIT

pdm-bin-dir is a PDM plugin that automatically prepends additional project directories to PATH when running commands via PDM. This lets you place helper scripts alongside your project and run them as plain commands — no prefix or activation needed.

Requirements

  • Python 3.10 or later
  • PDM 2.0 or later

Installation

Install the plugin into PDM's own environment:

pdm self add pdm-bin-dir

Usage

The plugin is opt-in per project: it has no effect unless [tool.pdm.plugin.bin-dir] is present in the project's pyproject.toml. Once configured, the listed directories are prepended to PATH before every pdm run … invocation.

Configuration

Add to your project's pyproject.toml:

[tool.pdm.plugin.bin-dir]
dirs = ["bin", "scripts"]

Paths are relative to the project root. Absolute paths are also accepted. The default is an empty list (no directories added).

pdm bin-dir command

The plugin registers a bin-dir sub-command for inspecting and changing the configuration:

# Show current configured directories (JSON array)
pdm bin-dir show

# Replace the list
pdm bin-dir set bin scripts

# Append to the list (duplicates are silently skipped)
pdm bin-dir add tools

Changes made via set / add are written back to pyproject.toml.

License

MIT. See LICENSE.


For development and release workflow documentation, see CONTRIBUTING.md.

Metadata

Release files for pdm-bin-dir 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdm-bin-dir 1.0.7
File Size Uploaded Provenance Actions
pdm_bin_dir-1.0.7.tar.gz 10.9 kB With provenance Details for pdm_bin_dir-1.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pdm-bin-dir 1.0.7
File Interpreter ABI Platform Actions
pdm_bin_dir-1.0.7-py3-none-any.whl Python 3 none any Details for pdm_bin_dir-1.0.7-py3-none-any.whl

Total release size: 20.0 kB

Release files / pdm_bin_dir-1.0.7.tar.gz

Download URL pdm_bin_dir-1.0.7.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b9627d46f5e80d91d73f635f03297c953144d4b03d2dcb006006a1c96c46c813
BLAKE2b-256 checksum
How to use checksums
35f9b2d9cd76f5add14794c261ef28344c0dfa5b823e31aa048d4412d38d6b8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 24, 2026.

Transparency log

Release files / pdm_bin_dir-1.0.7-py3-none-any.whl

Download URL pdm_bin_dir-1.0.7-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
342589b787a78059baf2cec1df23897c661b3c11b6760e5bce03e174ea4d3755
BLAKE2b-256 checksum
How to use checksums
c15bad68e92c8778479144a9ce22f2b448d7a3bba138f842ce6d7fbb0b2d405f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 24, 2026.

Transparency log

Security for pdm-bin-dir 1.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pdm_bin_dir-1.0.7.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page