Metadata-Version: 2.4
Name: conda-dependency-cleaner
Version: 0.0.4
Summary: Clean your conda yaml file and convert pip dependencies to conda.
License: MIT
License-File: LICENSE
Author: Oliver Weissl
Author-email: weissl@fortiss.org
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Utilities
Classifier: Typing :: Typed
Requires-Dist: conda (>24.0.0)
Requires-Dist: matplotlib (>=3.0.0,<4.0.0)
Requires-Dist: networkx (>=3.2.1,<4.0.0)
Project-URL: Repository, https://github.com/oliverweissl/CondaDependencyCleaner
Description-Content-Type: text/markdown

<img align="right" width="175" height="175" src="./CDC.png"></img>
## CondaDependencyCleaner
![CI Status](https://github.com/oliverweissl/CondaDependencyCleaner/actions/workflows/main.yml/badge.svg)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![conda-dependency-cleaner Downloads Last Month](https://assets.piptrends.com/get-last-month-downloads-badge/conda-dependency-cleaner.svg 'conda-dependency-cleaner Downloads Last Month by pip Trends')](https://piptrends.com/package/conda-dependency-cleaner)

A tool that helps make your conda environment files more lightweight by removing unnecessary transitive dependencies, leaving only what’s essential. 
It's a work-in-progress project, and we welcome feedback! 
Have ideas for new features or improvements? Open an issue in the repository to share your suggestions.

### How to use:
It is required to have conda installed. Once you are in a conda environment install conda `conda install conda` this is necessary for the package to work properly in the first place.
Then simply `pip install conda_dependency_cleaner`. You now can see all available operations if you type `cdc` into your console.

----
#### Clean Environment yaml files:
Once installed you can clean your `.yaml` or `.yml` files by running the command `cdc clean`. 
An example usage is as follows: 
```
cdc clean env.yml -nf env_cleaned.yml
```

For help and more info use `cdc clean --help`.

----
#### Convert pip dependencies to conda:
If you have a lot of pip dependencies which you want to convert to conda run `cdc convert`.
Note that this can be very slow if there is a lot of dependencies due to the underlying solver conda uses.
Sometimes the conversion fails, these failures will be reported after the script ran through.
```
cdc convert env.yml -nf env_converted.yml
```

For help and more info use `cdc clonvert --help`.

