conda-envfile-0.4.2
توضیحات
Inspect/combine conda YAML environment files
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | conda-envfile-0.4.2 |
| نام | conda-envfile |
| نسخه کتابخانه | 0.4.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Tom de Geus |
| ایمیل نویسنده | tom@geus.me |
| آدرس صفحه اصلی | https://github.com/tdegeus/conda_envfile |
| آدرس اینترنتی | https://pypi.org/project/conda-envfile/ |
| مجوز | MIT |
[](https://github.com/tdegeus/conda_envfile/actions)
[](https://conda_envfile.readthedocs.io/en/latest/?badge=latest)
[](https://github.com/tdegeus/conda_envfile/actions)
[](https://github.com/pre-commit/pre-commit)
[](https://anaconda.org/conda-forge/conda_envfile)
**Documentation: [https://conda_envfile.readthedocs.io](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:
```bash
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:
```yaml
- repo: https://github.com/tdegeus/conda_envfile
rev: v0.2.1
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:
```python
import conda_envfile
list(map(str, conda_envfile.unique("foo >1.2.0", "foo =1.2.*")))
```
which returns
```python
["foo >1.2.0, <1.3.0"]
```
نیازمندی
| مقدار | نام |
|---|---|
| - | click |
| - | Jinja2 |
| - | packaging |
| - | prettytable |
| - | pyyaml |
نحوه نصب
نصب پکیج whl conda-envfile-0.4.2:
pip install conda-envfile-0.4.2.whl
نصب پکیج tar.gz conda-envfile-0.4.2:
pip install conda-envfile-0.4.2.tar.gz