Inspect/combine conda YAML environment files
Project description
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
From the command line:
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
.
pre-commit
In your .pre-commit-config.yaml
, add:
- repo: https://github.com/tdegeus/conda_envfile
rev: v0.1.0
hooks:
- id: conda_envfile_parse
files: "environment.yaml"
to keep your environment.yaml
file unique, sorted, and legal in terms of version limitations.
Python
Combine different version restrictions. For example:
import conda_envfile
conda_envfile.unique("foo >1.2.0", "foo =1.2.*")
which returns
["foo >1.2.0, <1.3.0"]
Project details
Release history Release notifications | RSS feed
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.2.0.tar.gz
(14.3 kB
view hashes)
Built Distribution
Close
Hashes for conda_envfile-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d62a588a416f3d2ce803cb448953ba32eeb65913a126fcbc8bd8a74f13269a7 |
|
MD5 | b804197bda3533af4bf9d17634a3d3ab |
|
BLAKE2b-256 | a8ca4622834a9fa013180ade02a11f199b15a392b5b7ac0e18b8c3c02b408b44 |