Skip to main content

distman

distman logo

PyPI Tests License

Simple software distribution for production pipelines.

distman performs safe, versioned rollouts of software, scripts, and configuration files to filesystem locations. It is useful when deterministic deployments, environment-aware transforms, local caching, and quick rollback matter more than conventional package installation.

That includes revision-controlled configuration repositories. distman can publish configuration into runtime filesystem scopes without needing to understand the contents of those files. In that model, Git remains the source of truth, distman handles filesystem deployment, and runtime tools such as envstack can compose the deployed files later.

Deployed objects are stored as numbered versions, while an atomic symlink selects the active version:

bin/
├── tool -> versions/tool.2.a1b2c3d
└── versions/
    ├── tool.1.91c8a77
    └── tool.2.a1b2c3d

distman works well with envstack when you want filesystem deployment and runtime environment composition to remain separate concerns.

Installation

pip install -U distman

Install the optional JavaScript and HTML minifiers when a transform pipeline needs them:

pip install -U "distman[minify]"

Quickstart

For an ad hoc deployment, provide the source and destination directly:

dist --source path/to/tool --dest /deploy/bin/tool --dryrun
dist --source path/to/tool --dest /deploy/bin/tool --yes

Ad hoc deployments use the same versioned layout as configured deployments and match previous versions by content by default.

For repeatable project deployments, create a dist.json file at the root of a Git repository:

{
  "author": "pipeline@example.com",
  "targets": {
    "tools": {
      "source": "tools",
      "destination": "{DEPLOY_ROOT}/tools"
    }
  }
}

Preview and then perform the deployment:

dist --dryrun
dist --yes

Override a configured target source or destination from the CLI:

dist --source build/package --dest /deploy/lib/python/package --dryrun
dist --target tools --dest /deploy/tools --yes

The namespaced distman dist command provides the same distribution interface. Withdraw active targets while preserving their retained versions with distman undist; see the usage guide. Cache a shared deployment locally with:

distman cache

Documentation

Full documentation is available in the docs folder:

The documentation is also published through the repository's GitHub Pages workflow.

License

distman is distributed under the BSD 3-Clause License.

Installing Python distributions

A normal pip install distman includes the package-installation dependencies. Use distman install numpy, distman install -r requirements.txt, or distman install ./myapp. See the installation guide for configurable paths, cross-platform wheels, ownership, and current limitations.

Metadata

Release files for distman 0.9.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 distman 0.9.0
File Size Uploaded Provenance Actions
distman-0.9.0.tar.gz 142.8 kB Without provenance Details for distman-0.9.0.tar.gz

Built distribution (wheel)

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

Total release size: 269.8 kB

Release files / distman-0.9.0.tar.gz

Download URL distman-0.9.0.tar.gz
Size 142.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dd00c67c3e92a4c3d3730a985a65deb0ef456acece854c94b7e8478dd19c98da
BLAKE2b-256 checksum
How to use checksums
26669831a9a405b2ff32dbcaef7c2d824c02957a5c1ec000417ade2e61b47ca3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.10

Release files / distman-0.9.0-py3-none-any.whl

Download URL distman-0.9.0-py3-none-any.whl
Size 127.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d50fec74352348e08aa9a89a4541530b6bba9f762ca02aee79c6cfedbfaad1d
BLAKE2b-256 checksum
How to use checksums
9eff5b333476fb7fb2c5ca76bd854a4c2f4f23fed5d2951dd2e3224507fd02de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.10

Security for distman 0.9.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files No provenance

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