--- id: conda-inject version: "1.3.2" license: unclear license_treatment: unclear maintenance: dormant --- # conda-inject — Helper functions for injecting a conda environment into the current python environment (by modifying sys.path, without actually changing the current python environment). License: unclear · Maintenance: dormant · Downloads: 111.9K/mo ## What it is and what it does conda-inject is a utility for dynamically loading packages from a conda environment into your current Python process without activating that environment. It works by manipulating sys.path to prepend the target environment's site-packages directory, making its packages importable as if they were installed in the active environment. This is useful when you need to access packages from a specific conda environment without the overhead or side effects of full environment activation. The package depends only on pyyaml and supports Python 3.9, 3.10, 3.11, and 3.12. It is currently dormant—last release was 2024-05-27—so it receives no active maintenance. The license is undeclared, which may be a concern for some use cases. Use it for: - Load packages from an isolated conda environment in a script without activating it. - Dynamically switch between multiple conda environments' packages within a single Python session. - Test compatibility of code against packages from a specific conda environment without environment switching overhead. - Integrate conda-managed dependencies into a containerized or CI/CD workflow where full activation is impractical. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Injects a conda environment's packages into the current Python process by modifying sys.path, without changing the active conda environment. Yes, if you need lightweight runtime injection of conda packages and can tolerate dormant maintenance. The low install friction and lack of vulnerabilities make it safe to try. However, verify the undeclared license for your use case, and be aware that no active maintenance means no bug fixes or updates. Consider it a stable utility rather than an actively developed tool. ## Install pip install conda-inject uv add conda-inject poetry add conda-inject ## Installing conda-inject Before you install: Low install friction with a single runtime dependency (pyyaml). Package is dormant—no releases recorded in recent years—so expect no active maintenance or bug fixes. License in practice: License status is unclear; no SPDX identifier or raw license text is available. Verify the actual license before use in proprietary or copyleft-sensitive contexts. Quickstart: pip install conda-inject import conda_inject conda_inject.inject_conda_env('/path/to/conda/env') Requires Python 3.9 or later. The package modifies sys.path at runtime; ensure the target conda environment path is valid and accessible. Verify before relying: - What specific functions does the package export and what are their signatures? - Does the package handle conda environment discovery, or must the path be provided explicitly? - Are there known edge cases or limitations when injecting multiple environments or conflicting package versions? ## Package facts - License: not declared (unclear) - Python support: supports_current - Install friction: low - Maintenance: dormant - Downloads: 111.9K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags conda environment path injection, sys.path conda packages, load conda packages runtime, inject conda environment python, conda environment without activation, dynamic conda package loading, conda-integration, sys-path-manipulation [View on SkillFed](https://skillfed.io/packages/conda-inject) · [View on PyPI](https://pypi.org/project/conda-inject/)