Skip to main content

ci Documentation Status pre-commit pre-commit Conda Version

Documentation: https://conda_envfile.readthedocs.io

conda_envfile

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

Command line

conda_envfile_merge

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.

conda_envfile_diff

Show the difference between two environment files. For example:

conda_envfile_diff env1.yml env2.yml

pre-commit

conda_envfile_parse

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

- repo: https://github.com/tdegeus/conda_envfile
  rev: v0.5.0
  hooks:
  - id: conda_envfile_parse
    files: "environment.yaml"

conda_envfile_pyproject

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

- repo: https://github.com/tdegeus/conda_envfile
  rev: v0.5.0
  hooks:
  - id: conda_envfile_pyproject
    files: "environment.yaml"

Python

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"]

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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file conda_envfile-0.5.2.tar.gz.

File metadata

  • Download URL: conda_envfile-0.5.2.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for conda_envfile-0.5.2.tar.gz
Algorithm Hash digest
SHA256 c834c22cebabce0ddf07e476c9dfe705e235a50501de27055cf2cf6eb2013507
MD5 14f430ec6f15c6f9e025f5529465429f
BLAKE2b-256 fd5983dfe58873ee748cc9d98039e42405ba37d97e345c65e440d2d9436c11e1

See more details on using hashes here.

File details

Details for the file conda_envfile-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: conda_envfile-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for conda_envfile-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 39f0c023945a82ff5ee29f1c5881747f21e1e9b026771f02895e63b5ce009fc8
MD5 09abf125dfc91cf9a78458f4eb743d74
BLAKE2b-256 27c7784903bad7dead3eed63a8344fe9cb004414986f5294c1d62ca58f7fe991

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.5.2 This release

2 files

0.5.1

2 files

0.5.0

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

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