skillfed

ensureconda

Lightweight bootstrapper for a conda executable

ensureconda v1.6.0 85.8K downloads/30d#13,898 on PyPI17
Permissive license MIT AGING released

What it is and what it does

Ensureconda is a lightweight CLI bootstrapper that automates the discovery and installation of conda or mamba executables. It searches for an existing conda/mamba on the system, installs one if none is found (and installation is permitted), and returns the path to the executable on stdout. The tool supports multiple conda variants—mamba, micromamba, conda, and conda-standalone—each with configurable minimum version requirements and optional installation behavior.

It's designed for automation workflows, CI/CD pipelines, and scripts that need a reliable conda environment without manual setup. The package includes both a Python implementation (supporting Python 3.8+) and a standalone Go binary, and allows configuration of the conda-standalone download channel via environment variables.

Use it for:

  • Automated CI/CD pipelines that need conda available without requiring it pre-installed on the runner.
  • Build scripts that bootstrap a conda environment for reproducible package management across machines.
  • Container images or deployment automation that must discover or provision conda at runtime.
  • Development tools that depend on conda but want to fail gracefully if it's not present rather than erroring immediately.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A CLI tool that finds or installs a conda/mamba executable, returning its path for use in scripts and automation.

Yes, if you need to programmatically ensure conda/mamba is available in automation or CI/CD contexts. The low install friction, permissive license, and stable Python 3.8+ support make it a reasonable choice. However, the aging maintenance status (312 days since last release) suggests limited active development; verify that its feature set and conda-standalone download reliability meet your specific requirements before committing to it in critical pipelines.

Install

ensureconda on PyPI

pip

pip install ensureconda

uv

uv add ensureconda

poetry

poetry add ensureconda

Installing ensureconda

Before you install

Low friction install with six common dependencies (appdirs, click, conda-package-streaming, filelock, packaging, requests). Maintenance status is aging—last release was 312 days ago, though the repository remains active with a recent commit on 2026-02-01.

License in practice

MIT license (permissive) imposes no restrictions on use, modification, or distribution in proprietary or open-source projects.

Quickstart

$ pip install ensureconda
$ ensureconda --help
$ ensureconda --conda-exe

Requires Python 3.8 or later; conda or mamba must be discoverable on the system PATH or will be downloaded during execution.

Verify before relying

  • Whether the tool can reliably detect conda/mamba across all major operating systems without manual PATH configuration.
  • Performance impact of downloading conda-standalone on first run if no local conda is found.
  • Whether the Go-based binary reimplementation is feature-parity with the Python version.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 6 — appdirs, click, conda-package-streaming, filelock, packaging, requests
Maintenance aging — 312 days since the last release
Last repo commit
First released
Downloads 85,754/month — #13,898 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: ensureconda-1.6.0-py3-none-any.whl

Development Status :: 5 - Production/StableIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

conda bootstrap cliensure conda installedmamba executable finderconda installer toolautomated conda setupconda path resolvermicromamba bootstrapper
conda-bootstrapcli-toolautomation

More Build Tools packages