| Crates.io | conda-env-inspect |
| lib.rs | conda-env-inspect |
| version | 0.1.2 |
| created_at | 2025-04-18 16:46:11.516671+00 |
| updated_at | 2025-05-09 23:21:21.622194+00 |
| description | A CLI tool for inspecting Conda environment files |
| homepage | https://github.com/DishankChauhan/conda-env-inspect |
| repository | https://github.com/DishankChauhan/conda-env-inspect |
| max_upload_size | |
| id | 1639647 |
| size | 246,036 |
⚙️ A blazing-fast CLI tool to analyze and optimize your Conda environments — written in Rust.
Inspect .yml and .conda files, detect vulnerabilities, visualize dependencies, and get smart optimization tips.
environment.yml and .conda environment filescargo install --git https://github.com/DishankChauhan/conda-env-inspect
Pre-built binaries are available for download from the releases page. Download the appropriate binary for your operating system and place it in your PATH.
# Clone the repository
git clone https://github.com/DishankChauhan/conda-env-inspect
cd conda-env-inspect
# Build the project
cargo build --release
# The binary will be available at ./target/release/conda-env-inspect
Ensure you have Rust and Cargo installed. You can install them using rustup.
# Basic usage
conda-env-inspect environment.yml
# Flag pinned versions
conda-env-inspect -p environment.yml
# Check for outdated packages
conda-env-inspect -c environment.yml
# Generate recommendations
conda-env-inspect -r environment.yml
# Generate dependency graph in DOT format
conda-env-inspect -g --graph-output deps.dot environment.yml
# Export to JSON
conda-env-inspect -f json -o analysis.json environment.yml
# Export to Markdown
conda-env-inspect -f markdown -o analysis.md environment.yml
# Analyze environment
conda-env-inspect analyze -c -p environment.yml
# Export analysis results
conda-env-inspect export -f json -o analysis.json environment.yml
# Generate dependency graph
conda-env-inspect graph -o deps.dot environment.yml
# Advanced graph with conflict detection
conda-env-inspect graph -a -o deps.dot environment.yml
# Generate recommendations
conda-env-inspect recommend -c environment.yml
# Check for vulnerabilities
conda-env-inspect vulnerabilities environment.yml
# Interactive TUI mode with visual dependency graph
conda-env-inspect interactive --advanced-graph environment.yml
$ conda-env-inspect examples/environment.yml -c -r
+---------------+---------+-------+---------+--------+----------+
| Package | Version | Build | Channel | Pinned | Outdated |
+---------------+---------+-------+---------+--------+----------+
| python | 3.9 | N/A | default | Yes | Yes |
| numpy | 1.22.3 | N/A | default | Yes | Yes |
| pandas | 1.4.2 | N/A | default | Yes | Yes |
| matplotlib | 3.5.1 | N/A | default | Yes | Yes |
| scikit-learn | 1.0.2 | N/A | default | Yes | Yes |
| jupyterlab | N/A | N/A | default | No | No |
| tensorflow | 2.9.1 | N/A | default | Yes | Yes |
| pytorch | 1.11.0 | N/A | pytorch | Yes | Yes |
| pip | N/A | N/A | default | No | No |
+---------------+---------+-------+---------+--------+----------+
| TOTAL | 9 packages | | | 7 pinned | 7 outdated |
+---------------+---------+-------+---------+--------+----------+
| Size | 1.40 GB | | | | |
+---------------+---------+-------+---------+--------+----------+
Recommendations:
1. Found 7 outdated packages. Consider updating them for security and performance improvements.
2. Update numpy from 1.22.3 to 1.26.4
3. Update pandas from 1.4.2 to 2.2.1
4. Update matplotlib from 3.5.1 to 3.9.0
5. 77.8% of packages have pinned versions. This ensures reproducibility but may prevent updates.

The interactive mode provides:
$ conda-env-inspect vulnerabilities examples/environment.yml
Output:
Found 5 potential security vulnerabilities:
1. numpy 1.22.3 - Potentially vulnerable due to being significantly outdated (current: 1.22.3, latest: 2.2.4)
2. matplotlib 3.5.1 - Potentially vulnerable due to being significantly outdated (current: 3.5.1, latest: 3.10.1)
3. scikit-learn 1.0.2 - Potentially vulnerable due to being significantly outdated (current: 1.0.2, latest: 1.6.1)
4. tensorflow 2.9.1 - Potentially vulnerable due to being significantly outdated (current: 2.9.1, latest: 2.18.0)
5. pytorch 1.11.0 - Potentially vulnerable due to being significantly outdated (current: 1.11.0, latest: 2.5.1)
We welcome contributions to the project! Please follow these guidelines:
For any questions or issues, please open an issue on GitHub or contact the maintainers.
This project is licensed under the MIT License - see the LICENSE file for details.