coman-0.1a5
توضیحات
Simpler Conda dependency management
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | coman-0.1a5 |
| نام | coman |
| نسخه کتابخانه | 0.1a5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Wietse de Vries |
| ایمیل نویسنده | wietse.de.vries@rug.com |
| آدرس صفحه اصلی | https://github.com/wietsedv/coman |
| آدرس اینترنتی | https://pypi.org/project/coman/ |
| مجوز | MIT |
# CoMan: Conda Manager
[](https://pypi.org/project/coman/)

A simple CLI for Conda dependency management. CoMan gives you simple commands to manage dependencies in your `environment.yml` and properly uses lock files. Moreover, it manages unique Conda environments per project directory. CoMan mimicks the workflow of [Poetry](https://github.com/python-poetry/poetry) (or any other modern dependency manager), but then for Conda.
**Warning:** CoMan is work in progress and may not work in every scenario.
CoMan manages:
- `environment.yml`:
- `add`/`remove` dependencies with version constraints
- `conda-{platform}.lock`:
- (multi-platform) lock files for reproducable environments
- `requirements.txt`:
- (optional) pinned pip dependencies from `environment.yml`
- `{CONDA_ROOT}/envs/{basename}-{hash}`:
- unique environments for your project in your default environments directory
## Installation
There is currently no CoMan conda recipe. CoMan is designed to work independently of Conda, so that it can install and run Conda environments on any system (with Micromamba).
```bash
pip install -U coman
# pipx (recommended)
# make sure that pipx uses the python environment in which conda is installed (the conda base environment) if you have those installed
conda activate base
pipx install -e --python python coman
```
### Latest development version
```
pip install --user --upgrade git+https://github.com/wietsedv/coman.git
```
### Development
```bash
git clone git@github.com:wietsedv/coman.git
cd coman && pip install -e .
```
## Quick start
```bash
cd projects/MyProject
# "cm" is short for "coman"; use the command you prefer
# show system and environment status
cm info
# create environment.yml and lock file
cm init
# install the environment
cm install
# add "requests" dependency to environment.yml, the lock file(s) and your installed environment
cm add requests
# show the installed packages
cm show
# run a command (use -- to avoid argument conflicts)
cm run -- python --version
cm python -- --version # available for bash and python
coman-python --version # available for bash and python
# activate your environment in your current shell (at least works with bash and zsh)
cm shell
```
نیازمندی
| مقدار | نام |
|---|---|
| >=8.0.1 | click |
| >=1.4.1 | ensureconda |
| >=6.2.0 | pip-tools |
| >=0.17.10 | ruamel.yaml |
| >=1.4.0 | shellingham |
| >=2.8.5 | semantic-version |
نحوه نصب
نصب پکیج whl coman-0.1a5:
pip install coman-0.1a5.whl
نصب پکیج tar.gz coman-0.1a5:
pip install coman-0.1a5.tar.gz