ekans-0.2.1
توضیحات
A simple utility to check Conda environments integrity
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ekans-0.2.1 |
| نام | ekans |
| نسخه کتابخانه | 0.2.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Diego Vicente |
| ایمیل نویسنده | mail@diego.codes |
| آدرس صفحه اصلی | https://git.sr.ht/~diego/ekans |
| آدرس اینترنتی | https://pypi.org/project/ekans/ |
| مجوز | MIT |
# `ekans` - A simple utility to check Conda environments integrity
[](https://builds.sr.ht/~diego/ekans?)
[](https://badge.fury.io/py/ekans)
`ekans` is an simple set of scripts able to perform different checks on
Anaconda environments. This script is mainly thought as an easy way to
substitute the notion of development dependencies, which is lacking in Conda
environments.
Development dependencies are packages that are used during development and that
must strictly correlate with the Python version of the project. Some other
package managers (like Poetry) are able to define these dependencies to be
installed in regular environments but excluded from builds or using flags. This
is not possible in Conda: all packages in the declared environment are treated
equally, which implies this unwanted dependencies being bundled in production
as well. On the other hand, fighting against it makes the environment prone to
be non-consistent between production and development.
One way to solve this situation is having two different environments:
`env/prod.yml` and `env/dev.yml`. `ekans` is able to check that **all versions
are fixed and that production is a strict subset of development**. This results
in the desired scenario: correctly excluding the unwanted dependencies while
ensuring that both environments have the same real dependencies to test
against.
## Install
It is possible to install the package from PyPI using `pip`:
```shell
pip install --user ekans
```
## Usage
To check if an environment can be reproduced correctly, use the `fixed` in the
CLI tool. Not passing `-f` will cause the command to interactively prompt the
user to enter the path to the file.
```shell
ekans fixed [-f path/to/environment.yml]
```
If you want to check a full setup (`env/prod.yml` and `env/dev.yml` and their
relation) you can use the command `verify`, as seen in this example:
```shell
ekans verify [-d path/to/dev.yml] [-p path/to/prod.yml]
```
If you are running `ekans` from the root of your project and your names match
the ones described in this `README`, you can omit passing any arguments. There
are also `--help` flags available for the commands described above.
نیازمندی
| مقدار | نام |
|---|---|
| >=5.3.1,<6.0.0 | pyyaml |
| >=7.1.1,<8.0.0 | click |
| >=20.3,<21.0 | packaging |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl ekans-0.2.1:
pip install ekans-0.2.1.whl
نصب پکیج tar.gz ekans-0.2.1:
pip install ekans-0.2.1.tar.gz