Skip to main content

Clean your conda yaml file and convert pip dependencies to conda.

Project description

CondaDependencyCleaner

CI Status License: MIT conda-dependency-cleaner Downloads Last Month

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

conda_dependency_cleaner-0.0.3-py2.py3-none-any.whl (10.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file conda_dependency_cleaner-0.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for conda_dependency_cleaner-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9c9c2cdc228a046e929114b211a84ce88111f0269da02a85bf5722d337696712
MD5 944d5f814c528874d04c58bd4caa7409
BLAKE2b-256 20c0b3d96a2d72250301ca1d6285a0974cd744b9e109b8b6b91c9a241682ac71

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page