Skip to main content

Inspect/combine conda YAML environment files

Project description

ci Documentation Status pre-commit pre-commit Conda Version



Provides a Python library, command line tools, and pre-commit tools to manage conda environment files.

Command line


Merge different environment files. For example:

conda_envfile_merge -a "extra-library" env1.yml env2.yml > env3.yml

merges env1.yml and env2.yml and adds the package extra-library to the merged environment file env3.yml.


Show the difference between two environment files. For example:

conda_envfile_diff env1.yml env2.yml



Keep your environment.yaml file unique, sorted, and legal in terms of version limitations. In your .pre-commit-config.yaml, add:

- repo:
  rev: v0.5.0
  - id: conda_envfile_parse
    files: "environment.yaml"


Keep your pyproject.toml and environment.yaml in sync. In your .pre-commit-config.yaml, add:

- repo:
  rev: v0.5.0
  - id: conda_envfile_pyproject
    files: "environment.yaml"


Combine different version restrictions. For example:

import conda_envfile

list(map(str, conda_envfile.unique("foo >1.2.0", "foo =1.2.*")))

which returns

["foo >1.2.0, <1.3.0"]

Project details

Download files

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

Source Distribution

conda_envfile-0.5.2.tar.gz (22.4 kB view hashes)

Uploaded Source

Built Distribution

conda_envfile-0.5.2-py3-none-any.whl (13.3 kB view hashes)

Uploaded Python 3

Supported by

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