3 releases (breaking)
|0.3.0||Oct 26, 2020|
|0.2.0||Oct 20, 2020|
|0.1.0||Oct 11, 2020|
#1853 in Parser implementations
Simple CLI tool that allows to pretty print all dependencies within conda environment.
conda-leaves doesn't require any additional libraries to be installed, but it assumes user has
cargo installed and available in system's path.
Installation is as simple as running
cargo install conda-leaves.
Basic usage of CLI is as simple as:
It's returning the list of
leaves - packages that are not dependent on any other package installed in the environment. Those are usually packages we want to include in environment/requirements file, becauce they sit at the bottom of all dependencies. This CLI is about to simplify the process of understanding dependencies in your conda environment, allowing you to manage it with ease.
Prints help information.
Prints tree view for the package. It helps to understand which libraries are required by the package.
--dependent-packages- Prints libraries that depend on a given package.
--name- Name of the package that should be printed.
conda-leaves package [Flags] --name <name>
$ conda-leaves package -n jinja2 jinja2 (v2.11.2) ├── markupsafe (v1.1.1) └── setuptools (v49.6.0) └── certifi (v2020.6.20)
$ conda-leaves package -n dask -d Following packages depend on dask: - dask-ml - dask-xgboost - dask-glm
Exports leaves to the file.
--filename(default: environment.yml) - Name of the output yml file.
conda-leaves export [Options]
Running CLI using test data
CONDA_PREFIX="./tests/data" cargo run --release -- <command>