Skip to main content

Dploy

Dploy is a tool for creating symbolic links similarly to GNU Stow. It is provided as a CLI tool and Python 3.10+ module and supports Windows, Linux, and OSX.

Dploy's command stow creates symbolic links to the contents of packages in a specified destination directory. Repeating the stow command with the same arguments will confirm that the contents of the package have been symbolically linked.

Dploy's command unstow removes symbolic links that resulted from stow commands. Repeating the unstow command with the same arguments will confirm that the links to stowed packages have been removed.

Installation

  • Latest Release: pip install dploy
  • Development Version: pip install git+https://github.com/arecarn/dploy.git

Basic CLI Usage

  • dploy stow <package-directory>... <destination-directory>
  • dploy unstow <package-directory>... <destination-directory>
  • dploy clean <package-directory>... <destination-directory>
  • dploy --help

Dot-file names

stow --dotfiles stows a package entry named dot-something as a destination entry named .something:

dploy stow --dotfiles ~/dotfiles/bash ~
# ~/dotfiles/bash/dot-bashrc  ->  ~/.bashrc

This keeps the files visible in the package directory while they land as dot-files in the destination.

unstow does not need --dotfiles. It finds links by what they point at, so it removes them whether they are named dot-something or .something. It still accepts the flag, for symmetry with stow; with it, an unrelated file already named .something is reported as a conflict. clean is unaffected for the same reason.

An entry whose name is dot- followed by nothing or by a dot (dot-, dot-., dot-.., dot-.hidden) is left untranslated, as GNU Stow does; the first two would otherwise resolve to the destination directory or its parent.

Rationale

Dploy started out as simple Python script to create symbolic links to my dotfiles for Windows, Mac, and Linux. Over time I keep improving and tweaking my script to suit my needs, but I was running into a problem. Keeping all the files I wanted to link in a config file was becoming a real pain in the neck.

I started looking for another solution to solve my problem, and found many alternatives but none of them seemed to be a good fit. The solution that seemed the most promising was using GNU Stow. It seemed like the most simple elegant solution to the problem. The only issue was that it didn't support Windows.

Then I thought to myself, why can't I just create my own version of Stow that work on Windows, Linux and OSX. So after that my I started morphing simple python script into what would become Dploy and learned a lot more about python in the process.

How does it compare with GNU Stow?

Below are just a few few major points of comparison between GNU stow and Dploy.

  • Like GNU Stow Dploy runs in two passes. First by collecting the actions required to complete the command and verifying that the command can completed without any issues. If no issues are detected then the second pass executes these actions are execute to complete the command. Otherwise Dploy will exit and indicate why the command can not be completed. This way a stow or unstow operation is atomic and never partially done.

  • Like Stow, Dploy supports tree folding and tree unfolding. Like Stow's --no-folding, passing --no-folding to stow or unstow disables folding, so each file gets its own link inside a real directory.

  • Unlike Stow, Dploy requires an explicit package(s) and a destination directory.

  • Unlike Stow, Dploy does not have any concept of ownership, but will only operate on symbolic links and the creation or removal of directories for these symbolic links.

  • Unlike Stow, Dploy's unstow removes a destination directory that becomes empty as a result of removing its symbolic links, even if that directory existed before stow created any links inside it. Dploy keeps no state across invocations, so it cannot distinguish a directory it created from one that already existed.

  • stow's --skip-conflicts flag is the one opt-in exception to the atomicity described above: files that conflict with an existing, unmanaged destination entry are skipped and reported, while every other file in the package is still linked. dploy exits with status 2 when this happens, so a script can tell a partial stow apart from a full success (status 0) or a fatal error (status 1).

Metadata

Release files for dploy 0.2.0

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

Source distribution (sdist)

Source distribution for dploy 0.2.0
File Size Uploaded Provenance Actions
dploy-0.2.0.tar.gz 70.5 kB With provenance Details for dploy-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dploy 0.2.0
File Interpreter ABI Platform Actions
dploy-0.2.0-py3-none-any.whl Python 3 none any Details for dploy-0.2.0-py3-none-any.whl

Total release size: 94.5 kB

Release files / dploy-0.2.0.tar.gz

Download URL dploy-0.2.0.tar.gz
Size 70.5 kB
Tags Source
SHA-256 checksum
How to use checksums
065be67046d3700353a52b941a19e2e9f756c1702d4df3c6a744a9ed70389ffa
BLAKE2b-256 checksum
How to use checksums
589aa800a64442a333f3ec53c53d36be467d0e4637bc194ef03124325a41de34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 15, 2026.

Transparency log

Release files / dploy-0.2.0-py3-none-any.whl

Download URL dploy-0.2.0-py3-none-any.whl
Size 24.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b23dca029c16648702ee717b1c61296ddee6cd6315335f338f6ef7d43980d94a
BLAKE2b-256 checksum
How to use checksums
0c7ae001df1b7956784badca41b19a30f183f67d5007e119708b75a4a0abe5a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 15, 2026.

Transparency log

Security for dploy 0.2.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for dploy-0.2.0.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 Nov 15, 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