Skip to main content

Deploy Python, Rust, shell, and collective CLI environments behind GNU environment modulefiles

Project description

module-manager

tests Coverage License Ruff Documentation PyPI Python versions

module-manager deploys versioned Python, Rust, shell, and collective CLI environments behind GNU environment modulefiles for Linux/HPC systems.

It writes tools and modulefiles into predictable versioned locations:

/prod/tools/<name>/<version>/bin
/prod/modulefiles/<name>/<version>

The installation prefix and module root must be different directories.

Installation

Install from PyPI:

pip install env-module-manager

Or install as a uv-managed tool:

uv tool install env-module-manager

Quick Start

Deploy a Python CLI with uv tool install:

module-manager deploy-python ruff 0.8.0 \
  --package 'ruff==0.8.0' \
  --default-index https://packages.example/simple \
  --constraints /prod/constraints/runtime.txt \
  --uv-executable /opt/uv/bin/uv \
  --prefix /prod/tools \
  --module-root /prod/modulefiles \
  --execute-install

Set MODULE_MANAGER_UV_EXECUTABLE=/opt/uv/bin/uv to use the same uv path by default.

Deploy a Rust binary:

module-manager deploy-rust ripgrep 14.1.1 \
  --binary ./target/release/rg \
  --prefix /prod/tools \
  --module-root /prod/modulefiles

Generate a constraints file for a Python CLI:

module-manager auto-constraints ruff==0.8.0 --output constraints.txt

Deploy from a direct wheel or Git URL:

module-manager deploy-python my-tool 1.0.0 \
  --package 'my-tool @ file:///prod/wheels/my_tool-1.0.0-py3-none-any.whl' \
  --prefix /prod/tools \
  --module-root /prod/modulefiles \
  --execute-install

Deploy a shell script:

module-manager deploy-script my-tool 1.0.0 \
  --script ./scripts/my-tool \
  --prefix /prod/tools \
  --module-root /prod/modulefiles

Deploy a collective environment from a TOML manifest:

module-manager deploy-env --file dev-tools.toml --dry-run
module-manager deploy-env --file dev-tools.toml

Use the generated module:

module use /prod/modulefiles
module load ruff
ruff --version

Deployments make the deployed version the module default. Add --no-default when you want to write the versioned modulefile without changing the default.

Remove a deployed version:

module-manager uninstall ruff 0.8.0 \
  --prefix /prod/tools \
  --module-root /prod/modulefiles

Documentation

Read the full documentation on Read the Docs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

env_module_manager-0.10.0.tar.gz (97.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

env_module_manager-0.10.0-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file env_module_manager-0.10.0.tar.gz.

File metadata

  • Download URL: env_module_manager-0.10.0.tar.gz
  • Upload date:
  • Size: 97.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for env_module_manager-0.10.0.tar.gz
Algorithm Hash digest
SHA256 ecb1d0ea1b8f2cb3c213d6345334eb47b8d4cd5ba6f3059d6f5e2bb130a4b271
MD5 a319c7159311fb9506a0dddac29edf57
BLAKE2b-256 2ea69a3e4f0cbcb19027599f96aa289ec66e298390b53a02bdc07cddf7964e9a

See more details on using hashes here.

File details

Details for the file env_module_manager-0.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for env_module_manager-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f03d9c7b0f65d1bd0d566c3d1e6341ce39622ed86faec3f09089fca6bcff6155
MD5 7f4fb8a1f251c2fa296f4a4815d0009b
BLAKE2b-256 f2bd0600d195514d288f075d3a47238c331bd7079a90978cc99febdb2a18ea50

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page